def test_create_identical_entity(entity):
    with raises((db.NotUniqueError, db.OperationError)):
        Entity(name=entity.name).save()
Test that we cannot create two entities with the same name
dataset/ETHPy150Open pytent/pytentd/tentd/tests/documents/test_entity.py/test_create_identical_entity