aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_runtime.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2019-05-29 18:18:04 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2019-05-31 14:03:02 -0400
commitfb7f0437323ba836c68947d38f3604c3336e3a9b (patch)
tree756512a2b68f1c7270f028b487228fd0e3f13778 /test/test_runtime.py
parentdb498f217e03d772e0c0c37a526226d48ed790e2 (diff)
downloadexternal_python_mako-fb7f0437323ba836c68947d38f3604c3336e3a9b.tar.gz
external_python_mako-fb7f0437323ba836c68947d38f3604c3336e3a9b.tar.bz2
external_python_mako-fb7f0437323ba836c68947d38f3604c3336e3a9b.zip
Use tox / zimports
Change-Id: Ia047c7052a6d242c2cf1c7a83981f1e38ea4d928
Diffstat (limited to 'test/test_runtime.py')
-rw-r--r--test/test_runtime.py18
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")