def METHOD_NAME(self):
    with pytest.raises(ValueError, match="metadata attribute 'eapi' already registered"):
        class InvalidEapi2(results.MetadataError, results.VersionResult):
            attr = "eapi"