def test_get_job_logs_for_environment_that_exists_for_job_that_does_not_exist_exits_with_code_1(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.exit_mock.assert_called_with(1)
def test_get_job_logs_for_environment_that_exists_for_job_that_does_not_exist_exits_with_code_1(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.exit_mock.assert_called_with(1)