def test_read_genbank_from_filename(): """read_genbank given filename""" # first, explicitly tell it this is a filename entries = read_genbank(TEN_DLOOPS_FILEPATH, what='filename') assert 10 == len(entries) # next, make it guess entries = read_genbank(TEN_DLOOPS_FILEPATH) assert 10 == len(entries)
def test_read_genbank_from_text(): """read_genbank given text""" # first, explicitly tell it this is text entries = read_genbank(TEN_DLOOPS_TEXT, what='text') assert 10 == len(entries) # next, make it guess entries = read_genbank(TEN_DLOOPS_TEXT) assert 10 == len(entries)