diff options
Diffstat (limited to 'test/test_runtime.py')
-rw-r--r-- | test/test_runtime.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/test_runtime.py b/test/test_runtime.py index 80b97ce..d87d264 100644 --- a/test/test_runtime.py +++ b/test/test_runtime.py @@ -1,21 +1,21 @@ """Assorted runtime unit tests """ -from mako import runtime import unittest + +from mako import runtime from test import eq_ + class ContextTest(unittest.TestCase): def test_locals_kwargs(self): - c = runtime.Context(None, foo='bar') - eq_(c.kwargs, {'foo': 'bar'}) + c = runtime.Context(None, foo="bar") + eq_(c.kwargs, {"foo": "bar"}) - d = c._locals({'zig': 'zag'}) + d = c._locals({"zig": "zag"}) # kwargs is the original args sent to the Context, # it's intentionally kept separate from _data - eq_(c.kwargs, {'foo': 'bar'}) - eq_(d.kwargs, {'foo': 'bar'}) - - eq_(d._data['zig'], 'zag') - + eq_(c.kwargs, {"foo": "bar"}) + eq_(d.kwargs, {"foo": "bar"}) + eq_(d._data["zig"], "zag") |