コード例 #1
0
    def test_scan_hub(self):
        devices = omicronxx.HubxX.scan()
        if not TEST_NOHW:
            self.assertGreater(len(devices), 0)

        for name, kwargs in devices:
            logging.debug("opening %s", name)
            dev = omicronxx.HubxX(name, "test", **kwargs)
            dev.terminate()
コード例 #2
0
 def setUp(self):
     self.dev = omicronxx.HubxX("test", "light", HUBPORT)