def test_get_job_logs_for_job_that_exists_and_is_not_queued_does_not_call_exit(self):
    self._set_job_status(self.fake_job_status)
    self.mock_job_deployment.get_job_logs.return_value = self.fake_job_logs
    load_mock = Mock()
    self.patch('foundations_core_cli.job_submission.config.load', load_mock)
    load_mock.return_value = None
    CommandLineInterface(['get', 'logs', self.fake_env, self.mock_job_id]).execute()
    self.exit_mock.assert_not_called()
def test_get_job_logs_for_job_that_exists_and_is_not_queued_does_not_call_exit(self):
    self._set_job_status(self.fake_job_status)
    self.mock_job_deployment.get_job_logs.return_value = self.fake_job_logs
    load_mock = Mock()
    self.patch('foundations_core_cli.job_submission.config.load', load_mock)
    load_mock.return_value = None
    CommandLineInterface(['get', 'logs', self.fake_env, self.mock_job_id]).execute()
    self.exit_mock.assert_not_called()