Searched refs:safe_substitute (Results 1 - 4 of 4) sorted by relevance
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
H A D | test_pep292.py | 50 eq(s.safe_substitute(d), '%(foo)s baz baz') 57 eq(s.safe_substitute(d), 'tim has eaten 7 bags of ham today') 66 eq(s.safe_substitute(d), "('tim', 'fred') ate ('ham', 'kung pao')") 71 eq(s.safe_substitute(dict(who='tim')), 'tim likes ${what} for ${meal}') 72 eq(s.safe_substitute(dict(what='ham')), '$who likes ham for ${meal}') 73 eq(s.safe_substitute(dict(what='ham', meal='dinner')), 75 eq(s.safe_substitute(dict(who='tim', what='ham')), 77 eq(s.safe_substitute(dict(who='tim', what='ham', meal='dinner')), 126 self.assertRaises(ValueError, s.safe_substitute, {}) 151 eq(s.safe_substitute(wh [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
H A D | test_pep292.py | 50 eq(s.safe_substitute(d), '%(foo)s baz baz') 57 eq(s.safe_substitute(d), 'tim has eaten 7 bags of ham today') 66 eq(s.safe_substitute(d), "('tim', 'fred') ate ('ham', 'kung pao')") 71 eq(s.safe_substitute(dict(who='tim')), 'tim likes ${what} for ${meal}') 72 eq(s.safe_substitute(dict(what='ham')), '$who likes ham for ${meal}') 73 eq(s.safe_substitute(dict(what='ham', meal='dinner')), 75 eq(s.safe_substitute(dict(who='tim', what='ham')), 77 eq(s.safe_substitute(dict(who='tim', what='ham', meal='dinner')), 126 self.assertRaises(ValueError, s.safe_substitute, {}) 151 eq(s.safe_substitute(wh [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
H A D | string.py | 174 def safe_substitute(self, *args, **kws): member in class:Template
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
H A D | string.py | 174 def safe_substitute(self, *args, **kws): member in class:Template
|
Completed in 111 milliseconds