Пример #1
0
def test_parse_header_format():
    description = (
        '"Consequence annotations from Ensembl VEP. Format: Allele'
        '|Consequence|IMPACT|SYMBOL|Gene|Feature_type|Feature"'
    )

    format_info = parse_header_format(description.strip('"'))
    assert format_info == "Allele|Consequence|IMPACT|SYMBOL|Gene|Feature_type|Feature"
Пример #2
0
def test_parse_header_format_no_format():
    description = '"Consequence annotations from Ensembl VEP."'
    format_info = parse_header_format(description)
    assert format_info == ""
Пример #3
0
def test_parse_header_format():
    description = '"Consequence annotations from Ensembl VEP. Format: Allele'\
                  '|Consequence|IMPACT|SYMBOL|Gene|Feature_type|Feature"'
    
    format_info = parse_header_format(description.strip('"'))
    assert format_info == 'Allele|Consequence|IMPACT|SYMBOL|Gene|Feature_type|Feature'
Пример #4
0
def test_parse_header_format_no_format():
    description = '"Consequence annotations from Ensembl VEP."'
    format_info = parse_header_format(description)
    assert format_info == ''