def test_unique_items(self): l = [9, 3, 4, 2, 4, 5, 3, 9] assert list(DictUtils.unique_items(l)) == [9, 3, 4, 2, 5]