def METHOD_NAME(self):
    release = Release.objects.create(
        organization_id=self.org.id, version="123", total_deploys=0
    )
    release.add_project(self.project)
    url = reverse(
        "sentry-api-0-organization-release-deploys",
        kwargs={
            "organization_slug": self.org.slug,
            "version": release.version,
        },
    )
    response = self.client.post(
        url, data={"name": "foo", "environment": "bad/name", "url": "https://www.example.com"}
    )
    assert response.status_code == 400, response.content
    assert 0 == Deploy.objects.count()