def METHOD_NAME(self, mocked_derived_metrics, mocked_mri):
    mocked_derived_metrics.return_value = MOCKED_DERIVED_METRICS
    mocked_mri.return_value = "crash_free_fake"
    self.store_session(
        self.build_session(
            project_id=self.project.id,
            started=(time.time() // 60) * 60,
            status="ok",
            release="foobar",
            errors=2,
        )
    )
    response = self.get_response(
        self.organization.slug,
        "release",
        metric=["crash_free_fake"],
    )
    assert response.json()["detail"] == (
        "The following metrics {'crash_free_fake'} cannot be computed from single entities. "
        "Please revise the definition of these singular entity derived metrics"
    )