summaryrefslogtreecommitdiff
path: root/test/test_decorators.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2011-01-19 10:33:00 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2011-01-19 10:33:00 -0500
commit6779081b32cfb237062da8bc623a27d47301ce4c (patch)
treefc3372c916cfc9efc61cccffde74528772532b37 /test/test_decorators.py
parent76e622b46ef71eddfbcd1232ee08b4e55c88c363 (diff)
downloadmako-6779081b32cfb237062da8bc623a27d47301ce4c.tar.gz
- now that trailing whitespace comes up in red, need to get rid of it
Diffstat (limited to 'test/test_decorators.py')
-rw-r--r--test/test_decorators.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test_decorators.py b/test/test_decorators.py
index 62ba360..fc8768b 100644
--- a/test/test_decorators.py
+++ b/test/test_decorators.py
@@ -12,11 +12,11 @@ class DecoratorTest(unittest.TestCase):
return "BAR" + runtime.capture(context, fn, *args, **kw) + "BAR"
return decorate
%>
-
+
<%def name="foo(y, x)" decorator="bar">
this is foo ${y} ${x}
</%def>
-
+
${foo(1, x=5)}
""")
@@ -56,7 +56,7 @@ class DecoratorTest(unittest.TestCase):
%>
<%def name="foo()">
-
+
<%def name="bar()" decorator="bat">
this is bar
</%def>
@@ -67,7 +67,7 @@ class DecoratorTest(unittest.TestCase):
""")
assert flatten_result(template.render()) == "BAT this is bar BAT"
-
+
def test_toplevel_decorated_name(self):
template = Template("""
<%!
@@ -107,4 +107,4 @@ class DecoratorTest(unittest.TestCase):
""")
assert flatten_result(template.render()) == "function bar this is bar"
-
+