summaryrefslogtreecommitdiff
path: root/tests/template_backends
diff options
context:
space:
mode:
Diffstat (limited to 'tests/template_backends')
-rw-r--r--tests/template_backends/test_dummy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/template_backends/test_dummy.py b/tests/template_backends/test_dummy.py
index 92861c24da..24c30c97e3 100644
--- a/tests/template_backends/test_dummy.py
+++ b/tests/template_backends/test_dummy.py
@@ -81,7 +81,7 @@ class TemplateStringsTests(SimpleTestCase):
template = self.engine.get_template('template_backends/csrf.html')
content = template.render(request=request)
- expected = '<input type="hidden" name="csrfmiddlewaretoken" value="([^"]+)" />'
+ expected = '<input type="hidden" name="csrfmiddlewaretoken" value="([^"]+)">'
match = re.match(expected, content) or re.match(expected.replace('"', "'"), content)
self.assertTrue(match, "hidden csrftoken field not found in output")
self.assertTrue(equivalent_tokens(match.group(1), get_token(request)))