summaryrefslogtreecommitdiff
path: root/tests/test_scaffolds/test_template.py
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2018-10-25 19:34:38 -0500
committerMichael Merickel <michael@merickel.org>2018-10-25 19:34:38 -0500
commit25737fd6a412f4fe9b780305c0260bb6e938be1b (patch)
tree3837ac692f22e176208c5c48a5209f61c4fc49fb /tests/test_scaffolds/test_template.py
parent4149922e64aecf2a213f8efb120cd2d61fed3eb7 (diff)
downloadpyramid-25737fd6a412f4fe9b780305c0260bb6e938be1b.tar.gz
pyramid-25737fd6a412f4fe9b780305c0260bb6e938be1b.tar.bz2
pyramid-25737fd6a412f4fe9b780305c0260bb6e938be1b.zip
fix new lint errors from flake8
Diffstat (limited to 'tests/test_scaffolds/test_template.py')
-rw-r--r--tests/test_scaffolds/test_template.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_scaffolds/test_template.py b/tests/test_scaffolds/test_template.py
index d9a2dfadb..fc6b9f371 100644
--- a/tests/test_scaffolds/test_template.py
+++ b/tests/test_scaffolds/test_template.py
@@ -46,23 +46,23 @@ class TestTemplate(unittest.TestCase):
def test_render_template_with_escaped_double_braces(self):
inst = self._makeOne()
result = inst.render_template(
- '{{a}} {{b}} \{\{a\}\} \{\{c\}\}', {'a': '1', 'b': '2'}
+ '{{a}} {{b}} \\{\\{a\\}\\} \\{\\{c\\}\\}', {'a': '1', 'b': '2'}
)
self.assertEqual(result, bytes_('1 2 {{a}} {{c}}'))
def test_render_template_with_breaking_escaped_braces(self):
inst = self._makeOne()
result = inst.render_template(
- '{{a}} {{b}} \{\{a\} \{b\}\}', {'a': '1', 'b': '2'}
+ '{{a}} {{b}} \\{\\{a\\} \\{b\\}\\}', {'a': '1', 'b': '2'}
)
- self.assertEqual(result, bytes_('1 2 \{\{a\} \{b\}\}'))
+ self.assertEqual(result, bytes_('1 2 \\{\\{a\\} \\{b\\}\\}'))
def test_render_template_with_escaped_single_braces(self):
inst = self._makeOne()
result = inst.render_template(
- '{{a}} {{b}} \{a\} \{b', {'a': '1', 'b': '2'}
+ '{{a}} {{b}} \\{a\\} \\{b', {'a': '1', 'b': '2'}
)
- self.assertEqual(result, bytes_('1 2 \{a\} \{b'))
+ self.assertEqual(result, bytes_('1 2 \\{a\\} \\{b'))
def test_module_dir(self):
import sys