Lines Matching refs:pull
28 from acloud.pull import pull
44 self.Patch(pull, "SelectLogFileToPull", return_value=selected_files)
45 self.Patch(pull, "GetDownloadLogFolder", return_value="fake_folder")
46 self.Patch(pull, "PullLogs")
47 self.Patch(pull, "DisplayLog")
48 pull.PullFileFromInstance(cfg, instance)
49 self.assertEqual(pull.DisplayLog.call_count, 0)
53 self.Patch(pull, "SelectLogFileToPull", return_value=selected_files)
54 pull.PullFileFromInstance(cfg, instance)
55 self.assertEqual(pull.DisplayLog.call_count, 1)
64 pull.PullLogs(_ssh, log_files, download_folder)
77 pull.DisplayLog(_ssh, log_file)
88 self.assertEqual(pull.GetDownloadLogFolder(instance), expected_path)
96 self.Patch(pull, "GetAllLogFilePaths", return_value=log_files)
98 self.assertEqual(pull.SelectLogFileToPull(_ssh), expected_result)
101 self.Patch(pull, "GetAllLogFilePaths", return_value=[])
103 pull.SelectLogFileToPull(_ssh)
108 self.Patch(pull, "GetAllLogFilePaths", return_value=log_files)
111 self.assertEqual(pull.SelectLogFileToPull(_ssh), expected_result)
117 self.Patch(pull, "GetAllLogFilePaths", return_value=log_files)
119 self.assertEqual(pull.SelectLogFileToPull(_ssh, input_file), expected_result)
125 self.Patch(pull, "GetAllLogFilePaths", return_value=log_files)
127 pull.SelectLogFileToPull(_ssh, input_file)
134 self.assertEqual(pull.FilterLogfiles(files), expected_result)
139 self.assertEqual(pull.FilterLogfiles(files), expected_result)
141 @mock.patch.object(pull, "PullFileFromInstance")
154 pull.Run(args)
163 pull.Run(args)