コード例 #1
0
 def test_exec_command_p_uncomplete_argument(self):
     #4th argument is missing in adb_command
     global positive_exp_result_wo_output
     adb_command = [
         ADB_COMMAND_PREFIX, ADB_COMMAND_PULL, tmp_file_on_target
     ]
     result = adb.exec_command(adb_command)
     self.assertEqual(result, positive_exp_result_wo_output)
コード例 #2
0
ファイル: adb_test.py プロジェクト: emmanuil/adb-lib
 def test_exec_command_n_missing_argument(self):
     #no argument at all
     adb_command = None
     result = adb.exec_command(adb_command)
     self.assertNotEqual(str(result), 0)
コード例 #3
0
ファイル: adb_test.py プロジェクト: emmanuil/adb-lib
 def test_exec_command_p_uncomplete_argument(self):
     #4th argument is missing in adb_command
     global positive_exp_result_wo_output
     adb_command = [ADB_COMMAND_PREFIX, ADB_COMMAND_PULL, tmp_file_on_target]
     result = adb.exec_command(adb_command)
     self.assertEqual(result, positive_exp_result_wo_output)
コード例 #4
0
ファイル: adb_test.py プロジェクト: emmanuil/adb-lib
 def test_exec_command_p_adb_pull(self):
     global adb_pull
     global positive_exp_result_wo_output
     result = adb.exec_command(adb_pull)
     self.assertEqual(result, positive_exp_result_wo_output)
コード例 #5
0
 def test_exec_command_n_missing_argument(self):
     #no argument at all
     adb_command = None
     result = adb.exec_command(adb_command)
     self.assertNotEqual(str(result), 0)
コード例 #6
0
 def test_exec_command_p_adb_pull(self):
     global adb_pull
     global positive_exp_result_wo_output
     result = adb.exec_command(adb_pull)
     self.assertEqual(result, positive_exp_result_wo_output)