• Home
  • Raw
  • Download

Lines Matching refs:who

210         self.assertEqual(s.substitute(dict(who='tim', what='ham')),
212 self.assertRaises(KeyError, s.substitute, dict(who='tim'))
217 d = dict(who='tim', what='ham', meal='dinner')
220 dict(who='tim', what='ham'))
235 eq(s.substitute(dict(who='tim', what='ham')),
238 eq(s.substitute(dict(who='tim', what='ham')), 'tim likes $')
259 d = dict(who=('tim', 'fred'), meal=('ham', 'kung pao'))
266 eq(s.safe_substitute(dict(who='tim')), 'tim likes ${what} for ${meal}')
270 eq(s.safe_substitute(dict(who='tim', what='ham')),
272 eq(s.safe_substitute(dict(who='tim', what='ham', meal='dinner')),
278 raises(ValueError, s.substitute, dict(who='tim'))
280 raises(ValueError, s.substitute, dict(who='tim'))
282 raises(ValueError, s.substitute, dict(who='tim'))
286 raises(ValueError, s.substitute, dict(who='tim'))
288 raises(ValueError, s.substitute, dict(who='tim'))
296 m.bag.foo.who = 'tim'
344 m.bag.foo.who = 'tim'
417 d = dict(who='t\xffm', what='f\xfe\fed')
423 eq(s.substitute(who='tim', what='ham'), 'tim likes ham')
424 eq(s.substitute(dict(who='tim'), what='ham'), 'tim likes ham')
425 eq(s.substitute(dict(who='fred', what='kung pao'),
426 who='tim', what='ham'),
441 eq(s.safe_substitute(who='tim', what='ham'), 'tim likes ham')
442 eq(s.safe_substitute(dict(who='tim'), what='ham'), 'tim likes ham')
443 eq(s.safe_substitute(dict(who='fred', what='kung pao'),
444 who='tim', what='ham'),
464 eq(s.substitute(gift='bud', who='you'), 'this bud is for you &')
466 eq(s.safe_substitute(gift='bud', who='you'), 'this bud is for you &')
469 raises(ValueError, s.substitute, dict(gift='bud', who='you'))
475 self.assertEqual(s.substitute(dict(who='tim', what='ham')),