Lines Matching refs:bag
9 class Bag:
25 s = Template('$who likes to eat a bag of $what worth $$100')
27 'tim likes to eat a bag of ham worth $100')
39 s = Template('$who likes to eat a bag of $$what worth $$100')
41 'tim likes to eat a bag of $what worth $100')
93 m.bag = Bag()
94 m.bag.foo = Bag()
95 m.bag.foo.who = 'tim'
96 m.bag.what = 'ham'
97 s = PathPattern('$bag.foo.who likes to eat a bag of $bag.what')
98 self.assertEqual(s.substitute(m), 'tim likes to eat a bag of ham')
109 m.bag = Bag()
110 m.bag.foo = Bag()
111 m.bag.foo.who = 'tim'
112 m.bag.what = 'ham'
113 s = MyPattern('@bag.foo.who likes to eat a bag of @bag.what')
114 self.assertEqual(s.substitute(m), 'tim likes to eat a bag of ham')
124 s = BadPattern('@bag.foo.who likes to eat a bag of @bag.what')
181 s = PieDelims('@who likes to eat a bag of @{what} worth $100')
183 'tim likes to eat a bag of ham worth $100')