Ejemplo n.º 1
0
 def test_exec_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)
Ejemplo n.º 2
0
 def test_exec_n_missing_argument(self):
     #no argument at all
     adb_command = None
     result = adb.exec_command(adb_command)
     self.assertNotEqual(str(result), 0)
Ejemplo n.º 3
0
 def test_exec_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)
Ejemplo n.º 4
0
 def test_exec_missing_argument(self):
     #no argument at all
     adb_command = None
     result = adb.exec_command(adb_command)
     self.assertNotEqual(str(result), 0)
Ejemplo n.º 5
0
 def test_exec_incomplete_argument(self):
     #4th argument is missing in adb_command
     global POSITIVE_EXP_RESULT_WO_OUTPUT
     adb_command = [ v.ADB_COMMAND_PREFIX, v.ADB_COMMAND_PULL, tmp_file_on_target]
     result = adb.exec_command(adb_command)
     self.assertEqual(result, POSITIVE_EXP_RESULT_WO_OUTPUT)
Ejemplo n.º 6
0
 def test_exec_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)
Ejemplo n.º 7
0
 def test_exec_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)
Ejemplo n.º 8
0
 def test_exec_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)