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_minimal(self):
        """OneLineSprinzlParser should work on a minimal 'file'"""
        small = ['acc\taa\tac\tsp\tst\ta\tb\tc','q\tw\te\tr\tt\tA\tC\tG']
        p = OneLineSprinzlParser(small)
        result = list(p)
    def test_init(self):
        """OneLineSprinzlParser should read small file correctly"""
        p = OneLineSprinzlParser(self.tRNAs)
        recs = list(p)
        self.assertEqual(len(recs), 3)

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_minimal(self):
        """OneLineSprinzlParser should work on a minimal 'file'"""
        small = ['acc\taa\tac\tsp\tst\ta\tb\tc','q\tw\te\tr\tt\tA\tC\tG']
        p = OneLineSprinzlParser(small)
        result = list(p)
    def test_init(self):
        """OneLineSprinzlParser should read small file correctly"""
        p = OneLineSprinzlParser(self.tRNAs)
        recs = list(p)
        self.assertEqual(len(recs), 3)