def test_get_job_logs_for_job_that_exists_and_is_not_queued_prints_logs(self):
    self._set_job_status(self.fake_job_status)
    self.mock_job_deployment.get_job_logs.return_value = self.fake_job_logs
    self.find_environment_mock.return_value = [self.fake_config_path(self.fake_env)]
    CommandLineInterface(['get', 'logs', self.fake_env, self.mock_job_id]).execute()
    self.print_mock.assert_called_with(self.fake_job_logs)
def test_get_job_logs_for_job_that_exists_and_is_not_queued_prints_logs(self):
    self._set_job_status(self.fake_job_status)
    self.mock_job_deployment.get_job_logs.return_value = self.fake_job_logs
    self.find_environment_mock.return_value = [self.fake_config_path(self.fake_env)]
    CommandLineInterface(['get', 'logs', self.fake_env, self.mock_job_id]).execute()
    self.print_mock.assert_called_with(self.fake_job_logs)