@pytest.mark.parametrize('line, expected', [('SNP\t1\t13\t1\t598843\tG', {'category_id': 'SNP', 'evidence_id': '1', 'parent_ids': '13', 'seq_id': '1', 'position': '598843', 'new_seq': 'G'}), ('SNP\t4\t39\t1\t1301317\tC', {'category_id': 'SNP', 'evidence_id': '4', 'parent_ids': '39', 'seq_id': '1', 'position': '1301317', 'new_seq': 'C'}), ('INS\t2\t16\t1\t1137319\tC', {'category_id': 'INS', 'evidence_id': '2', 'parent_ids': '16', 'seq_id': '1', 'position': '1137319', 'new_seq': 'C'}), ('DEL\t11\t95\t5\t1\t1248', {'category_id': 'DEL', 'evidence_id': '11', 'parent_ids': '95', 'seq_id': '5', 'position': '1', 'size': '1248'}), ('MOB\t1\t117,118\tREL606\t16972\tIS150\t-1\t3', {'category_id': 'MOB', 'evidence_id': '1', 'parent_ids': '117,118', 'seq_id': 'REL606', 'position': '16972', 'repeat_name': 'IS150', 'strand': '-1', 'duplication_size': '3'})])
def test_parse_positional_fields(parser, line, expected):
    line = line.split('\t')
    result = parser.parse_positional_fields(line)
    assert (result == expected)
@pytest.mark.parametrize('line, expected', [('SNP\t1\t13\t1\t598843\tG', {'category_id': 'SNP', 'evidence_id': '1', 'parent_ids': '13', 'seq_id': '1', 'position': '598843', 'new_seq': 'G'}), ('SNP\t4\t39\t1\t1301317\tC', {'category_id': 'SNP', 'evidence_id': '4', 'parent_ids': '39', 'seq_id': '1', 'position': '1301317', 'new_seq': 'C'}), ('INS\t2\t16\t1\t1137319\tC', {'category_id': 'INS', 'evidence_id': '2', 'parent_ids': '16', 'seq_id': '1', 'position': '1137319', 'new_seq': 'C'}), ('DEL\t11\t95\t5\t1\t1248', {'category_id': 'DEL', 'evidence_id': '11', 'parent_ids': '95', 'seq_id': '5', 'position': '1', 'size': '1248'}), ('MOB\t1\t117,118\tREL606\t16972\tIS150\t-1\t3', {'category_id': 'MOB', 'evidence_id': '1', 'parent_ids': '117,118', 'seq_id': 'REL606', 'position': '16972', 'repeat_name': 'IS150', 'strand': '-1', 'duplication_size': '3'})])
def test_parse_positional_fields(parser, line, expected):
    line = line.split('\t')
    result = parser.parse_positional_fields(line)
    assert (result == expected)