def testOpenCloseByFirstFound(self): # Open by first found first_devices = [] for x in range(len(self.devices)): first_devices.append(ics.open_device()) # Close by API for device in first_devices: ics.close_device(device)
def shutdown(self): super(NeoViBus, self).shutdown() ics.close_device(self.dev)
def shutdown(self): super().shutdown() ics.close_device(self.dev)
def testOpenClose100Times(self): for x in range(100): ics.open_device(self.devices[0]) ics.close_device(self.devices[0])
def testOpenCloseBySerial(self): # Open by serial number for device in self.devices: d = ics.open_device(device.SerialNumber) ics.close_device(d)
def testOpenCloseByFind(self): # Open by ics.NeoDevice for device in self.devices: ics.open_device(device) ics.close_device(device)