Migrated issue, originally created by Anonymous
unit test:
class ContextTest(unittest.TestCase):
def test_locals_kwargs(self):
c = Context(None, foo='bar')
self.assertEqual(c.kwargs, {'foo': 'bar'})
d = c.locals_({'zig': 'zag'})
self.assertEqual(c.kwargs, {'foo': 'bar'})
self.assertEqual(d.kwargs, {'foo': 'bar', 'zig': 'zag'})
attached is a patch for mako 0.7.2.
Attachments: mako-0.7.2.patch