Exemplo n.º 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_secondary()
Exemplo n.º 2
0
    def test_lower_case_secondary_returns_true(self):
        tag = Tag.from_str("tp:A:s")
        record = PafRecord(strand=Strand.Forward, tags={tag.tag: tag})

        assert record.is_secondary()
Exemplo n.º 3
0
    def test_unmapped_record(self):
        record = PafRecord()

        assert not record.is_secondary()