def METHOD_NAME(self):
    # Given setup data
    data = {
        "base_url": "http://test.com",
        "api_key": "abc-123",
        "entity_selector": "type(APPLICATION),entityName(docs)",
    }
    # When
    response = self.client.post(
        self.list_url,
        data=json.dumps(data),
        content_type="application/json",
    )
    # Then
    assert response.status_code == status.HTTP_201_CREATED
    # and
    assert (
        DynatraceConfiguration.objects.filter(environment=self.environment).count()
        == 1
    )