'Verify that no errors occur when the catalog service user is missing.'

@mock.patch((UTILS_MODULE + '.logger.error'))
def test_service_user_missing(self, mock_log_error, mock_get_edx_api_data):

    catalog_integration = self.create_catalog_integration(service_username='nonexistent-user')
    data = get_course_runs()
    mock_log_error.any_call('Catalog    service    user    with    username    [%s]    does    not    exist.    Course    runs    will    not    be    retrieved.', catalog_integration.service_username)
    self.assertFalse(mock_get_edx_api_data.called)
    self.assertEqual(data, [])
