def setUp(self): self.mock_usb = _Mock690LcDevice() self.device = Modern690Lc(self.mock_usb, 'Mock Modern 690LC') self.device.connect()
def mockModern690LcDevice(): device = _Mock690LcDevice() dev = Modern690Lc(device, 'Mock Modern 690LC') dev.connect() return dev