def METHOD_NAME(self):
    """Test check_lockout() function."""
    request = self.factory.get("/formList", **self.extra)
    self.assertEqual(check_lockout(request), (None, None))
    request = self.factory.get("/bob/formList", **self.extra)
    self.assertEqual(check_lockout(request), (None, None))
    request = self.factory.get("/submission", **self.extra)
    self.assertEqual(check_lockout(request), (None, None))
    request = self.factory.get("/bob/submission", **self.extra)
    self.assertEqual(check_lockout(request), (None, None))
    request = self.factory.get("/123/form.xml", **self.extra)
    self.assertEqual(check_lockout(request), (None, None))
    request = self.factory.get("/xformsManifest/123", **self.extra)
    self.assertEqual(check_lockout(request), (None, None))
    request = self.factory.get("/", **{"HTTP_AUTHORIZATION": b"Digest bob"})
    self.assertEqual(check_lockout(request), (None, None))
    request = self.factory.get("/", **self.extra)
    self.assertEqual(
        check_lockout(request), (request.META.get("REMOTE_ADDR"), "bob")
    )
    # Uses X_REAL_IP if present
    self.assertNotIn("HTTP_X_REAL_IP", request.META)
    extra = {"HTTP_X_REAL_IP": "1.2.3.4"}
    extra.update(self.extra)
    request = self.factory.get("/", **extra)
    self.assertEqual(check_lockout(request), ("1.2.3.4", "bob"))