def as_request(self, user=None, ip_address=None):
    from .helpers import MockRequest
    return MockRequest(user, ip_address)
def as_request(self, user=None, ip_address=None):
    from .helpers import MockRequest
    return MockRequest(user, ip_address)