def METHOD_NAME(self):
    with self.feature(PROFILING_FEATURES):
        response = self.client.get(self.url, {"query": "foo:bar"})
    assert response.status_code == 400
    assert response.data == {
        "detail": ErrorDetail(string="Invalid query: foo is not supported", code="parse_error")
    }