def test_pick_one_two_base_insertion_over_two_separate_insertions(): a = Polymorphism(1,1,'A') b = Polymorphism(1,2,'A') c = Polymorphism(1,1,'A') d = Polymorphism(2,1,'A') input = [[a,b],[c,d]] output = [[a,b]] assert output == prefer_multi_inserts(input)
def test_prefer_multi_inserts_does_not_affect_single_insertion_alternatives(): # make sure non-cases make it through a = Polymorphism(1,0,'A') b = Polymorphism(1,1,'A') c = Polymorphism(1,0,'A') d = Polymorphism(2,1,'A') input = [[a,b],[c,d]] output = [[a,b],[c,d]] assert output == prefer_multi_inserts(input)