예제 #1
0
 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)
예제 #2
0
def close_devices(devices):
  return high.CloseDevices(devices)