def test_get_job_logs_for_queued_job_prints_error_message(self):
    self._set_job_status('queued')
    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 `{}` is queued and has not produced any logs'.format(self.mock_job_id))
def test_get_job_logs_for_queued_job_prints_error_message(self):
    self._set_job_status('queued')
    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 `{}` is queued and has not produced any logs'.format(self.mock_job_id))