from unittest.mock import Mock


def get_response_mock(url):
    """Get a mock representing a response to a request.

    :param url: response URL
    :returns: an instance of mock representing a response
    """
    response = Mock()
    response.url = url
    return response