def test_pull_p(self): global tmp_file_on_target global dest_folder_host global positive_exp_result_wo_output result = adb.pull(tmp_file_on_target, dest_folder_host) self.assertEqual(result, positive_exp_result_wo_output)
def test_pull_n_invalid_dest_folder_host(self): global tmp_file_on_target result = adb.pull(tmp_file_on_target, NON_EXISTING_DIR) self.assertNotEqual(str(result), 0)
def test_pull_invalid_dest_folder_host(self): global tmp_file_on_target result = adb.pull(tmp_file_on_target, NON_EXISTING_DIR) self.assertNotEqual(str(result), 0)
def test_pull(self): global tmp_file_on_target global dest_folder_host global POSITIVE_EXP_RESULT_WO_OUTPUT result = adb.pull(tmp_file_on_target, dest_folder_host) self.assertEqual(result, POSITIVE_EXP_RESULT_WO_OUTPUT)
def test_pull_invalid_dest_folder_host(self): global tmp_file_on_target result = adb.pull(tmp_file_on_target, NON_EXISTING_DIR) result[0].should_not.be(str(1))
def test_pull(self): result = adb.pull(tmp_file_on_target, dest_folder_host) result.should.be(POSITIVE_EXP_RESULT_WO_OUTPUT)