Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)

src/c/o/cogent-1.5.3/tests/test_parse/test_flowgram_parser.py   cogent(Download)
from types import GeneratorType
from cogent.util.unit_test import TestCase, main
from cogent.parse.flowgram_parser import get_header_info, get_summaries,\
    get_all_summaries, split_summary, parse_sff, lazy_parse_sff_handle
 
    def test_split_summary(self):
        """split_summary should return the info of a flowgram header."""
        summaries = get_all_summaries(self.rec)
        sum_dict = split_summary(summaries[0])
        self.assertEqual(len(sum_dict), 18)
        self.assertEqual(sum_dict['Name'], 'FIQU8OX05GCVRO')
        assert 'Flowgram' in sum_dict
        assert 'Bases' in sum_dict
 
        sum_dict = split_summary(summaries[1])

src/p/y/pycogent-HEAD/tests/test_parse/test_flowgram_parser.py   pycogent(Download)
from types import GeneratorType
from cogent.util.unit_test import TestCase, main
from cogent.parse.flowgram_parser import get_header_info, get_summaries,\
    get_all_summaries, split_summary, parse_sff, lazy_parse_sff_handle
 
    def test_split_summary(self):
        """split_summary should return the info of a flowgram header."""
        summaries = get_all_summaries(self.rec)
        sum_dict = split_summary(summaries[0])
        self.assertEqual(len(sum_dict), 18)
        self.assertEqual(sum_dict['Name'], 'FIQU8OX05GCVRO')
        assert 'Flowgram' in sum_dict
        assert 'Bases' in sum_dict
 
        sum_dict = split_summary(summaries[1])