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)
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)
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)
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)