コード例 #1
0
    def test_primary_record_returns_false(self):
        tag = Tag.from_str("tp:A:P")
        record = PafRecord(strand=Strand.Forward, tags={tag.tag: tag})

        assert not record.is_inversion()
コード例 #2
0
    def test_lower_case_inversion_returns_true(self):
        tag = Tag.from_str("tp:A:i")
        record = PafRecord(strand=Strand.Forward, tags={tag.tag: tag})

        assert record.is_inversion()
コード例 #3
0
    def test_unmapped_record(self):
        record = PafRecord()

        assert not record.is_inversion()