def METHOD_NAME(
    self, method: str, url: str, data: Optional[Dict[Any, Any]] = {}
) -> Any:
    try:
        r = getattr(self.client, method)(url, data, format="json")
        self.assertNotEqual(r.status_code, 403)
        return r
    except KeyError:
        pass