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)
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)
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)
def test_exec_missing_argument(self): #no argument at all adb_command = None result = adb.exec_command(adb_command) self.assertNotEqual(str(result), 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)
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)
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)