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_greengenes.py   cogent(Download)
#!/usr/bin/env python
 
from cogent.util.unit_test import TestCase, main
from cogent.parse.greengenes import MinimalGreengenesParser, make_ignore_f,\
        DefaultDelimitedSplitter, SpecificGreengenesParser
    def test_MinimalGreengenesParser_mock(self):
        """Test MinimalGreengenesParser against mock data"""
        res = MinimalGreengenesParser(mock_data.splitlines(), RecStart="my_starting", \
                RecEnd="my_ending")
 
    def test_MinimalGreengenesParser_real(self):
        """Test MinimalGreengenesParser against real data"""
        res = MinimalGreengenesParser(real_data.splitlines())
        record1, record2 = list(res)
 

src/p/y/pycogent-HEAD/tests/test_parse/test_greengenes.py   pycogent(Download)
#!/usr/bin/env python
 
from cogent.util.unit_test import TestCase, main
from cogent.parse.greengenes import MinimalGreengenesParser, make_ignore_f,\
        DefaultDelimitedSplitter, SpecificGreengenesParser
    def test_MinimalGreengenesParser_mock(self):
        """Test MinimalGreengenesParser against mock data"""
        res = MinimalGreengenesParser(mock_data.splitlines(), RecStart="my_starting", \
                RecEnd="my_ending")
 
    def test_MinimalGreengenesParser_real(self):
        """Test MinimalGreengenesParser against real data"""
        res = MinimalGreengenesParser(real_data.splitlines())
        record1, record2 = list(res)