

def test_request_anonymous(self):
    'No actor will be logged when a user is not logged in.'
    request = self.factory.get('/')
    request.user = AnonymousUser()
    self.middleware.process_request(self)
    self.assertFalse(pre_save.has_listeners(LogEntry))
    self.middleware.process_exception(request, None)

dataset/ETHPy150Open jjkester/django-auditlog/src/auditlog_tests/tests.py MiddlewareTest.test_request_anonymous/VarMisuse@37/66 `request`->`self`