示例#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)
示例#7
0
 def test_get_devices(self):
     devices = rawapi.get_devices()
     self.assertTrue(len(devices) > 0)
示例#8
0
 def test_get_devices(self):
     devices = rawapi.get_devices()
     self.assertTrue(len(devices) > 0)