def test_reuse_different_names():
        """Disallow this case because decorated function a would not be cached."""
        with pytest.raises(RuntimeError):
            # noinspection PyUnusedLocal
            class ReusedCachedProperty:  # NOSONAR
                """Test class."""

                # noinspection PyPropertyDefinition
                @cached_property
                def a(self):  # NOSONAR
                    """Test getter."""

                b = a
Disallow this case because decorated function a would not be cached.
tests/core/serve/test_compat/test_cached_property.py