summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_exceptions.py2
-rw-r--r--test/test_template.py19
2 files changed, 9 insertions, 12 deletions
diff --git a/test/test_exceptions.py b/test/test_exceptions.py
index 7a2e6b0..4a90b90 100644
--- a/test/test_exceptions.py
+++ b/test/test_exceptions.py
@@ -173,7 +173,7 @@ ${foobar}
)
assert (
- '<div class="sourceline"><table class="syntax-highlightedtable">'
+ '<table class="syntax-highlightedtable">'
in l.get_template("foo.html").render_unicode()
)
diff --git a/test/test_template.py b/test/test_template.py
index fc1aeca..6e7a309 100644
--- a/test/test_template.py
+++ b/test/test_template.py
@@ -940,18 +940,15 @@ class ControlTest(TemplateTest):
%endfor
"""
)
- assert (
- result_lines(
- t.render(
- y=[
- {"test": "one"},
- {"foo": "bar"},
- {"foo": "bar", "test": "two"},
- ]
- )
+ assert result_lines(
+ t.render(
+ y=[
+ {"test": "one"},
+ {"foo": "bar"},
+ {"foo": "bar", "test": "two"},
+ ]
)
- == ["yes x has test", "no x does not have test", "yes x has test"]
- )
+ ) == ["yes x has test", "no x does not have test", "yes x has test"]
def test_blank_control_1(self):
self._do_memory_test(