Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
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)
Ejemplo n.º 4
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)
Ejemplo n.º 5
0
 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))
Ejemplo n.º 6
0
 def test_pull(self):
     result = adb.pull(tmp_file_on_target, dest_folder_host)
     result.should.be(POSITIVE_EXP_RESULT_WO_OUTPUT)
Ejemplo n.º 7
0
 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)