def test_merge_concatenates_lists(self): l1 = [1, 2, 3] l2 = [4, 5, 6] result = utils.merge(l1, l2) for x in (l1 + l2): assert x in result
def test_merge_eliminates_duplicate_entries(self): l1 = [1, 2] l2 = [2, 3] result = utils.merge(l1, l2) for x in (l1 + l2): assert result.count(x) == 1