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_get_all_summaries(self):
        """get_all_summaries should return a list of the summaries"""
        summaries = get_all_summaries(self.rec)
        self.assertEqual(len(summaries), 2)
        self.assertEqual(isinstance(summaries,list), True)
    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)

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_get_all_summaries(self):
        """get_all_summaries should return a list of the summaries"""
        summaries = get_all_summaries(self.rec)
        self.assertEqual(len(summaries), 2)
        self.assertEqual(isinstance(summaries,list), True)
    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)