unit test:
classContextTest(unittest.TestCase):deftest_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.