def test_get_job_logs_for_environment_that_exists_for_job_that_does_not_exist_prints_error_message(self):
    self._set_job_status(None)
    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('Error: Job `{}` does not exist for environment `{}`'.format(self.mock_job_id, self.fake_env))
def test_get_job_logs_for_environment_that_exists_for_job_that_does_not_exist_prints_error_message(self):
    self._set_job_status(None)
    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('Error: Job `{}` does not exist for environment `{}`'.format(self.mock_job_id, self.fake_env))