def test_merge_sets_with_remove_in_second_set_after_add_in_first(): first = LWWElementSet() second = LWWElementSet() first.add('one', 1) first.add('one', 2) second.remove('one', 3) merged = first.merge(second) assert not merged.contains('one')
def test_merge_sets(): first = LWWElementSet() second = LWWElementSet() first.add('one', 1) second.add('two', 2) merged = first.merge(second) assert merged.contains('one') assert merged.contains('two')