def test_parse_id(): (start, strand, name) = parse_id('1:1-20 + /Users/HeathOBrien/Bioinformatics/Psuedomonas/AE016853.gbk') assert start == 1 assert strand == '+' assert name == '/Users/HeathOBrien/Bioinformatics/Psuedomonas/AE016853.gbk' (start, strand, name) = parse_id('1:1-20 - /Users/HeathOBrien/Bioinformatics/Psuedomonas/AE016853.gbk') assert start == 20 assert strand == '-'
def test_parse_id3(): """test if error handling works correctly when strand info not formatted correctly""" (start, strand, name) = parse_id('1:1-20 1 /Users/HeathOBrien/Bioinformatics/Psuedomonas/AE016853.gbk')