def _test_parse_factory(source):
 filename = os.path.join('CDAO/', source)
 def test_parse(self):
  trees = list(bp._io.parse(filename, 'cdao'))
 test_parse.__doc__ = ('Parse the phylogenies in %s.' % source)
 return test_parse

def _test_parse_factory ( source ) : filename = os . path . join ( 'CDAO/' , source ) def test_parse ( self ) : trees = list ( bp . _io . parse ( filename , 'cdao' ) ) test_parse . __doc__ = ( 'Parse the phylogenies in %s.' % source ) return test_parse
generate a test method for parse()ing the given source .