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

All Samples(4)  |  Call(2)  |  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_make_ignore_f(self):
        """Properly ignore empty records and the start line"""
        f = make_ignore_f('testing')
        self.assertFalse(f(['asasdasd','']))
        self.assertFalse(f(['test','']))

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_make_ignore_f(self):
        """Properly ignore empty records and the start line"""
        f = make_ignore_f('testing')
        self.assertFalse(f(['asasdasd','']))
        self.assertFalse(f(['test','']))