def test_unique():
 with pytest.raises(TypeError):
  usertypes.enum('Enum', ['item', 'item'])

def test_unique ( ) : with pytest . raises ( TypeError ) : usertypes . enum ( 'Enum' , [ 'item' , 'item' ] )
make sure elements need to be unique .