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()
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()
def test_unmapped_record(self): record = PafRecord() assert not record.is_secondary()