Did I find the right examples for you? yes no

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

        def make_fails(globs, name, tokenize, tests):
    for i, string in enumerate(tests):
        globs['test %s (fail) #%d' % (name, i)] = make_fail(tokenize, string)
        


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):
def fail_single(tok, *tests):
    fn = just_tokenize(tok)
    return make_fails(globals(), tok.__name__, fn, tests)
 
# string