Пример #1
0
 def test_open_device(self):
     devices = rawapi.get_devices()
     self.assertTrue(len(devices) > 0)
     devid = devices[0][0]
     dev = rawapi.open(devid)
     self.assertNotEqual(dev, None)
     del dev
Пример #2
0
 def test_open_device(self):
     devices = rawapi.get_devices()
     self.assertTrue(len(devices) > 0)
     devid = devices[0][0]
     dev = rawapi.open(devid)
     self.assertNotEqual(dev, None)
     del dev
Пример #3
0
 def test_get_sources(self):
     devices = rawapi.get_devices()
     self.assertTrue(len(devices) > 0)
     devid = devices[0][0]
     dev = rawapi.open(devid)
     self.assertNotEqual(dev, None)
     sources = rawapi.get_sources(dev)
     self.assertTrue(len(sources) > 0)
Пример #4
0
 def test_get_sources(self):
     devices = rawapi.get_devices()
     self.assertTrue(len(devices) > 0)
     devid = devices[0][0]
     dev = rawapi.open(devid)
     self.assertNotEqual(dev, None)
     sources = rawapi.get_sources(dev)
     self.assertTrue(len(sources) > 0)
Пример #5
0
 def setUp(self):
     if os.name != "nt":
         return
     rawapi.init()
     devices = rawapi.get_devices()
     devid = devices[0][0]
     self.dev = rawapi.open(devid)
     self.sources = rawapi.get_sources(self.dev)
     self.assertTrue(len(self.sources) > 0)
Пример #6
0
 def setUp(self):
     if os.name != "nt":
         return
     rawapi.init()
     devices = rawapi.get_devices()
     devid = devices[0][0]
     self.dev = rawapi.open(devid)
     self.sources = rawapi.get_sources(self.dev)
     self.assertTrue(len(self.sources) > 0)