def METHOD_NAME(self):
    with self.subTest("No query params"):
        url = reverse("api:validators-list")
        response = self.client.get(url)
        self.assertEqual(response.status_code, status.HTTP_200_OK)
        self.assertEqual(
            response.data,
            [
                {
                    "id": "django",
                    "label": "Django Test Validator",
                    "for_components": ["textfield"],
                },
                {
                    "id": "drf",
                    "label": "DRF Test Validator",
                    "for_components": ["phoneNumber"],
                },
                {
                    "id": "func",
                    "label": "Django function Validator",
                    "for_components": [],
                },
            ],
        )
    with self.subTest("Validators for textfield component"):
        query_params = {"component_type": "textfield"}
        response = self.client.get(reverse("api:validators-list"), query_params)
        self.assertEqual(response.status_code, status.HTTP_200_OK)
        self.assertEqual(
            response.data,
            [
                {
                    "id": "django",
                    "label": "Django Test Validator",
                    "for_components": ["textfield"],
                },
            ],
        )
    with self.subTest("Validators for phoneNumber component"):
        query_params = {"component_type": "phoneNumber"}
        response = self.client.get(reverse("api:validators-list"), query_params)
        self.assertEqual(response.status_code, status.HTTP_200_OK)
        self.assertEqual(
            response.data,
            [
                {
                    "id": "drf",
                    "label": "DRF Test Validator",
                    "for_components": ["phoneNumber"],
                },
            ],
        )
    with self.subTest("Optional query param"):
        query_params = {"component_type": ""}
        response = self.client.get(reverse("api:validators-list"), query_params)
        self.assertEqual(response.status_code, status.HTTP_200_OK)
        self.assertEqual(
            response.data,
            [
                {
                    "id": "django",
                    "label": "Django Test Validator",
                    "for_components": ["textfield"],
                },
                {
                    "id": "drf",
                    "label": "DRF Test Validator",
                    "for_components": ["phoneNumber"],
                },
                {
                    "id": "func",
                    "label": "Django function Validator",
                    "for_components": [],
                },
            ],
        )
    with self.subTest("Invalid query params"):
        query_params = {"component_type": 123}
        response = self.client.get(reverse("api:validators-list"), query_params)
        self.assertEqual(response.status_code, status.HTTP_200_OK)
        self.assertEqual(response.data, [])