def METHOD_NAME(self):
    regions = [
        Region("us", 1, "http://us.testserver", RegionCategory.MULTI_TENANT),
        Region("eu", 2, "http://eu.testserver", RegionCategory.MULTI_TENANT),
        Region("acme-single-tenant", 3, "acme.my.sentry.io", RegionCategory.SINGLE_TENANT),
    ]
    with override_regions(regions):
        assert get_region_by_name("eu") == regions[1]
        with pytest.raises(RegionResolutionError):
            get_region_by_name("nowhere")