def test_toposet_with_items_added_from_a_set_is_equal_to_the_set(items): t = TopoSet() for item in items: t.add(item) assert t == items
def test_toposet_updated_from_iterable_without_duplicates_has_same_length( items): t = TopoSet() for item in items: t.add(item) assert list(t) == items