Lines Matching refs:macro
53 macro = result._macros.get('foo')
54 self.assertIsNotNone(macro)
55 self.assertEquals(macro.name, 'foo')
56 self.assertEquals(macro.args, tuple())
57 self.assertEquals(macro.body, 'body')
75 macro = result._macros.get('noArgs')
76 self.assertIsNotNone(macro)
77 self.assertEquals(macro.name, 'noArgs')
78 self.assertEquals(macro.args, tuple())
79 self.assertEquals(macro.body, 'body1\nbody2\n')
80 macro = result._macros.get('oneArg')
81 self.assertIsNotNone(macro)
82 self.assertEquals(macro.name, 'oneArg')
83 self.assertEquals(macro.args, ('foo',))
84 self.assertEquals(macro.body, 'body3')
85 macro = result._macros.get('twoArgs')
86 self.assertIsNotNone(macro)
87 self.assertEquals(macro.name, 'twoArgs')
88 self.assertEquals(macro.args, ('bar_', 'baz'))
89 self.assertEquals(macro.body, 'body4\nbody5')
97 macro = result._macros.get('another')
98 self.assertIsNotNone(macro)
99 self.assertEquals(macro.name, 'another')
100 self.assertEquals(macro.args, ('a', 'b', 'c'))
101 self.assertEquals(macro.body, 'body1\nbody2')