def test_getAlignmentType_pairIsMismatch(self): aligned_pair = AlignedPair(query_pos=10, ref_pos=15, ref_base="a") actual = aligned_pair.get_alignment_type() expected = AlignmentType.MISMATCH assert actual == expected
def test_getAlignmentType_pairIsInsertion(self): aligned_pair = AlignedPair(query_pos=None, ref_pos=10, ref_base="A") actual = aligned_pair.get_alignment_type() expected = AlignmentType.INSERTION assert actual == expected
def test_getAlignmentType_pairIsDeletion(self): aligned_pair = AlignedPair(query_pos=10, ref_pos=None, ref_base=None) actual = aligned_pair.get_alignment_type() expected = AlignmentType.DELETION assert actual == expected