def METHOD_NAME(self):
    request = make_request("/a/block/login", session_key=None)
    with intercept_save(AccessAudit) as cfg:
        AccessAudit.audit_login_failed(request, "melvin@test.com")
        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_FAILED)
    self.assertEqual(event.session_key, None)
    self.assertEqual(event.description, "Login failed: melvin@test.com")