def METHOD_NAME(self, *_):
    # health endpoint not available in version 1
    with patch("pyixapi.core.query.Request.get_version", return_value=1):
        i = IXAPI.objects.get(name="IXP 1")
        self.assertEqual("", i.get_health())
    i = IXAPI.objects.get(name="IXP 2")
    with patch("pyixapi.core.query.Request.get_version", return_value=2):
        with patch(
            "requests.sessions.Session.get",
            return_value=MockedResponse(content={"status": "up"}),
        ):
            self.assertEqual("healthy", i.get_health())
        with patch(
            "requests.sessions.Session.get",
            return_value=MockedResponse(content={"status": "warn"}),
        ):
            self.assertEqual("degraded", i.get_health())
        with patch(
            "requests.sessions.Session.get",
            return_value=MockedResponse(content={"status": "error"}),
        ):
            self.assertEqual("unhealthy", i.get_health())