Exemplo n.º 1
0
 def test_reset_false(self):
     Adb.adb = Mock()
     cmd = False
     Adb.reset(cmd)
     expected_calls = []
     assert Adb.adb.mock_calls == expected_calls
Exemplo n.º 2
0
 def test_reset_true(self):
     Adb.adb = Mock()
     cmd = True
     Adb.reset(cmd)
     expected_calls = [call.kill_server(), call.get_devices()]
     assert Adb.adb.mock_calls == expected_calls