Lines Matching refs:formatstr
13 def testformat(formatstr, args, output=None, limit=None, overflowok=False): argument
17 (repr(formatstr), repr(args), repr(output)),
19 print "%s %% %s works? ..." % (repr(formatstr), repr(args)),
21 result = formatstr % args
32 (formatstr, args, result, output))
43 (repr(formatstr), repr(args), repr(result), repr(output))
49 def testboth(formatstr, *args, **kwargs): argument
50 testformat(formatstr, *args, **kwargs)
52 testformat(unicode(formatstr), *args, **kwargs)
252 def test_exc(formatstr, args, exception, excmsg): argument
254 testformat(formatstr, args)