def tests(): for i in range(len(trees)): _ = lambda: ok_( newick_parser.parse_string( trees[i] ) == results[i] ) _.description = "check tree parsing " + str(i) yield _,