def test_fasta_content_iterator(): 'it test fasta_content_iterator' fhand = open(os.path.join(TEST_DATA_DIR, 'seq.fasta')) fastas = list(fasta_contents_in_file(fhand)) assert fastas[0][0] == 'seq1' assert fastas[1][1] == 'polya' assert 'TAGTCTATGATGCATCAGATGCATGA' in fastas[2][2]