def METHOD_NAME(self):
    request = RequestFactory().get("/")
    self.assertIsNone(request.headers.get("X-Forwarded-For"))
    request.META["REMOTE_ADDR"] = "203.0.113.195"
    client_ip = get_client_ip(request)
    self.assertEqual(client_ip, "203.0.113.195")