예제 #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
 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
 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
 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)