@classmethod<EOL><INDENT>def setUpClass(cls):<DEDENT>
cls.mock = True<EOL>username = "<STR_LIT>"<EOL>ip_addr = "<STR_LIT>"<EOL>password = "<STR_LIT>"<EOL>cls.vendor = "<STR_LIT>"<EOL>optional_args = {}<EOL>optional_args["<STR_LIT>"] = "<STR_LIT>"<EOL>cls.device = ios.IOSDriver(<EOL>ip_addr, username, password, optional_args=optional_args<EOL>)<EOL>if cls.mock:<EOL><INDENT>cls.device.device = FakeIOSDevice()<EOL><DEDENT>else:<EOL><INDENT>cls.device.open()<EOL><DEDENT>
Executed when the class is instantiated.