def test_toposet_eliminates_duplicates(items): t = TopoSet(items) t.update(items) assert list(t) == items
def test_toposet_updated_from_iterable_without_duplicates_has_same_length( items): t = TopoSet() t.update(items) assert list(t) == items