Quantcast
Channel: Mako: Ticket Query
Viewing all articles
Browse latest Browse all 38

#219: Context.locals_() does not update the returned Context's `kwargs` attribute

$
0
0

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.


Viewing all articles
Browse latest Browse all 38

Trending Articles