def METHOD_NAME(self):
    url = reverse(viewname="v1:cluster")
    amount_of_clusters = Cluster.objects.count()
    for name in self.invalid_names:
        with self.subTest("invalid", name=name):
            response = self.client.post(
                path=url,
                data={"name": name, "prototype_id": self.prototype.pk},
                content_type=APPLICATION_JSON,
            )
            self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
            self.assertEqual(response.json()["code"], "BAD_REQUEST")
            self.assertEqual(Cluster.objects.count(), amount_of_clusters)
    for name in self.valid_names:
        with self.subTest("valid", name=name):
            response = self.client.post(
                path=url,
                data={"name": name, "prototype_id": self.prototype.pk},
                content_type=APPLICATION_JSON,
            )
            self.assertEqual(response.status_code, status.HTTP_201_CREATED)
            self.assertEqual(response.json()["name"], name)