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

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)

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_header_info(self):
        """get_header_info should return a sff file common header as a dict"""
        header = get_header_info(self.rec)
        self.assertEqual(len(header), 11)
        self.assertEqual(header['Key Length'], '4')

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_header_info(self):
        """get_header_info should return a sff file common header as a dict"""
        header = get_header_info(self.rec)
        self.assertEqual(len(header), 11)
        self.assertEqual(header['Key Length'], '4')

src/q/i/qiime-1.8.0/tests/test_denoise_wrapper.py   qiime(Download)
from cogent.parse.flowgram import Flowgram
from cogent.parse.flowgram_collection import FlowgramCollection
from cogent.parse.flowgram_parser import get_header_info
from qiime.denoise_wrapper import fast_denoiser, extract_cluster_size
 
class DenoiseWrapperTests(TestCase):
    """Tests of the abstract DenoiseWrapper OTU Picker class"""
    def setUp(self):
        self.file_content = file_content
        self.header = get_header_info(header.split('\n'))