def METHOD_NAME(self):
    with intercept_save(AccessAudit) as cfg:
        AccessAudit.audit_login(make_request("/a/block/login"), make_user())
        event = cfg.obj
    self.assertEqual(event.user, "melvin@test.com")
    self.assertEqual(event.path, "/a/block/login")
    self.assertEqual(event.domain, "block")
    self.assertEqual(event.ip_address, "127.0.0.1")
    self.assertEqual(event.http_accept, "html")
    self.assertEqual(event.user_agent, "Mozilla")
    self.assertEqual(event.access_type, mod.ACCESS_LOGIN)
    self.assertEqual(event.session_key, "abc")
    self.assertEqual(event.description, "Login: melvin@test.com")