def test_GetDevices(self): devices = high.GetLocalDevices(banner='python-adb', default_timeout_ms=1000, auth_timeout_ms=1000) try: self.assertEqual( 1, len([d for d in devices if d.port_path == self.PORT_PATH])) finally: high.CloseDevices(devices)
def close_devices(devices): return high.CloseDevices(devices)