

def test_request(self):
    'The actor will be logged when a user is logged in.'
    request = self.factory.get('/')
    request.user = self.user
    request.middleware.process_request(request)
    self.assertTrue(pre_save.has_listeners(LogEntry))
    self.middleware.process_exception(request, None)

dataset/ETHPy150Open jjkester/django-auditlog/src/auditlog_tests/tests.py MiddlewareTest.test_request/VarMisuse@31/55 `self`->`request`