From fb7f0437323ba836c68947d38f3604c3336e3a9b Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 29 May 2019 18:18:04 -0400 Subject: Use tox / zimports Change-Id: Ia047c7052a6d242c2cf1c7a83981f1e38ea4d928 --- test/test_runtime.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'test/test_runtime.py') 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") -- cgit v1.2.3