def set_device_parameters(request):
if NAPALM_TEST_MOCK:<EOL><INDENT>driver = request.cls.patched_driver<EOL><DEDENT>else:<EOL><INDENT>driver = request.cls.driver<EOL><DEDENT>request.cls.device = driver(<EOL>NAPALM_HOSTNAME,<EOL>NAPALM_USERNAME,<EOL>NAPALM_PASSWORD,<EOL>timeout=<NUM_LIT>,<EOL>optional_args=NAPALM_OPTIONAL_ARGS,<EOL>)<EOL>request.cls.device.open()<EOL>
Set up the class.