• Home
  • Raw
  • Download

Lines Matching refs:who

242         self.assertEqual(s.substitute(dict(who='tim', what='ham')),
244 self.assertRaises(KeyError, s.substitute, dict(who='tim'))
249 d = dict(who='tim', what='ham', meal='dinner')
252 dict(who='tim', what='ham'))
257 eq(s.substitute(dict(who='tim', what='ham')),
260 eq(s.substitute(dict(who='tim', what='ham')), 'tim likes $')
281 d = dict(who=('tim', 'fred'), meal=('ham', 'kung pao'))
288 eq(s.safe_substitute(dict(who='tim')), 'tim likes ${what} for ${meal}')
292 eq(s.safe_substitute(dict(who='tim', what='ham')),
294 eq(s.safe_substitute(dict(who='tim', what='ham', meal='dinner')),
300 raises(ValueError, s.substitute, dict(who='tim'))
302 raises(ValueError, s.substitute, dict(who='tim'))
304 raises(ValueError, s.substitute, dict(who='tim'))
312 m.bag.foo.who = 'tim'
328 m.bag.foo.who = 'tim'
381 d = dict(who=u't\xffm', what=u'f\xfe\fed')
387 eq(s.substitute(who='tim', what='ham'), 'tim likes ham')
388 eq(s.substitute(dict(who='tim'), what='ham'), 'tim likes ham')
389 eq(s.substitute(dict(who='fred', what='kung pao'),
390 who='tim', what='ham'),
405 eq(s.safe_substitute(who='tim', what='ham'), 'tim likes ham')
406 eq(s.safe_substitute(dict(who='tim'), what='ham'), 'tim likes ham')
407 eq(s.safe_substitute(dict(who='fred', what='kung pao'),
408 who='tim', what='ham'),
428 eq(s.substitute(gift='bud', who='you'), 'this bud is for you &')
430 eq(s.safe_substitute(gift='bud', who='you'), 'this bud is for you &')
433 raises(ValueError, s.substitute, dict(gift='bud', who='you'))
439 self.assertEqual(s.substitute(dict(who='tim', what='ham')),