def METHOD_NAME(self):
    """Ensure kind can't be repeated."""
    class TestClass1(OCPBaseEntity):
        _kind = "test-entity"
        name: str
    with pytest.raises(
        AssertionError, match="Entity with kind='test-entity' already registered."
    ):
        class TestClass2(OCPBaseEntity):
            _kind = "test-entity"
            name: str