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_sprinzl.py   cogent(Download)
"""
from string import strip
from cogent.parse.sprinzl import OneLineSprinzlParser, GenomicSprinzlParser,\
    _fix_sequence, get_pieces, get_counts, sprinzl_to_vienna
from cogent.util.unit_test import TestCase, main
    def test_single(self):
        """GenomicSprinzlParser should work with single sequence"""
        seqs = list(GenomicSprinzlParser(genomic_sample[0:4]))
        self.assertEqual(len(seqs), 1)
        s = seqs[0]
    def test_multi(self):
        """GenomicSprinzlParser should work with multiple sequences"""
        seqs = list(GenomicSprinzlParser(genomic_sample))
        self.assertEqual(len(seqs), 3)
        self.assertEqual([s.Info.Accession for s in seqs], \

src/p/y/pycogent-HEAD/tests/test_parse/test_sprinzl.py   pycogent(Download)
"""
from string import strip
from cogent.parse.sprinzl import OneLineSprinzlParser, GenomicSprinzlParser,\
    _fix_sequence, get_pieces, get_counts, sprinzl_to_vienna
from cogent.util.unit_test import TestCase, main
    def test_single(self):
        """GenomicSprinzlParser should work with single sequence"""
        seqs = list(GenomicSprinzlParser(genomic_sample[0:4]))
        self.assertEqual(len(seqs), 1)
        s = seqs[0]
    def test_multi(self):
        """GenomicSprinzlParser should work with multiple sequences"""
        seqs = list(GenomicSprinzlParser(genomic_sample))
        self.assertEqual(len(seqs), 3)
        self.assertEqual([s.Info.Accession for s in seqs], \