Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 def shutdown(self):
     super(NeoViBus, self).shutdown()
     ics.close_device(self.dev)
Exemplo n.º 3
0
 def shutdown(self):
     super().shutdown()
     ics.close_device(self.dev)
Exemplo n.º 4
0
 def testOpenClose100Times(self):
     for x in range(100):
         ics.open_device(self.devices[0])
         ics.close_device(self.devices[0])
Exemplo n.º 5
0
 def testOpenCloseBySerial(self):
     # Open by serial number
     for device in self.devices:
         d = ics.open_device(device.SerialNumber)
         ics.close_device(d)
Exemplo n.º 6
0
 def testOpenCloseByFind(self):
     # Open by ics.NeoDevice
     for device in self.devices:
         ics.open_device(device)
         ics.close_device(device)