Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

        def make_tests(globs, name, tokenize, tests):
    print 'hi'
    for i, (string, expected) in enumerate(tests):
        globs['test %s #%d' % (name, i)] = make_test(tokenize, string, expected)
        


src/c/o/CodeTalker-1.1/tests/tokenize/ctokens.py   CodeTalker(Download)
#!/usr/bin/env python
 
from util import just_tokenize, make_tests, make_fails, TSTRING, STRING, SSTRING, ID, WHITE, NUMBER, INT, HEX, CCOMMENT, CMCOMMENT, PYCOMMENT, NEWLINE, ANY
 
def make_single(tok, *tests):
    fn = just_tokenize(tok, WHITE)
    return make_tests(globals(), tok.__name__, fn, tests)