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

All Samples(10)  |  Call(8)  |  Derive(0)  |  Import(2)

src/c/o/cogent-1.5.3/tests/test_parse/test_ebi.py   cogent(Download)
#!/usr/bin/env python
""" Provides tests for EbiParser and related classes and functions.
"""
 
from cogent.parse.ebi import cc_alternative_products_parser, \
 
        #test raise error when  key not found in all_keys 
        f = curry(pairs_to_dict, all_keys=['a','c'])
        self.assertRaises(ValueError, f, sorted_items)
 
 
        #test raise error when  no valid handlers were found 
        f = curry(pairs_to_dict, handlers=handlers)
        self.assertRaises(ValueError, f, sorted_items)
 
    def test_MinimalEbiParser_valid(self):
        """MinimalEbiParser: integrity of output """
        f = curry(MinimalEbiParser, strict=False)
 
        #test valid result: sequence, number of records, keys of a header 
    def test_EbiParser(self):
        """EbiParser: """
        f = curry(EbiParser, strict=False)
        first_valid = fake_records_valid[:-5]
 

src/p/y/pycogent-HEAD/tests/test_parse/test_ebi.py   pycogent(Download)
#!/usr/bin/env python
""" Provides tests for EbiParser and related classes and functions.
"""
 
from cogent.parse.ebi import cc_alternative_products_parser, \
 
        #test raise error when  key not found in all_keys 
        f = curry(pairs_to_dict, all_keys=['a','c'])
        self.assertRaises(ValueError, f, sorted_items)
 
 
        #test raise error when  no valid handlers were found 
        f = curry(pairs_to_dict, handlers=handlers)
        self.assertRaises(ValueError, f, sorted_items)
 
    def test_MinimalEbiParser_valid(self):
        """MinimalEbiParser: integrity of output """
        f = curry(MinimalEbiParser, strict=False)
 
        #test valid result: sequence, number of records, keys of a header 
    def test_EbiParser(self):
        """EbiParser: """
        f = curry(EbiParser, strict=False)
        first_valid = fake_records_valid[:-5]