summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJason Pellerin <jpellerin@gmail.com>2006-07-23 03:31:52 +0000
committerJason Pellerin <jpellerin@gmail.com>2006-07-23 03:31:52 +0000
commit438c23a6c6eb71b73272a9b98392af654b76c82c (patch)
treec9f9bdfd9db7efc982b5094ba452c5d152881b35 /tests
parentd345b89bc67b67867a4cc9608a972b7ffa6e0903 (diff)
[multi-db] Merge trunk to [3426]
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3427 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
-rw-r--r--tests/othertests/markup.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/othertests/markup.py b/tests/othertests/markup.py
index 3fa5a3a883..2b00a8c7a5 100644
--- a/tests/othertests/markup.py
+++ b/tests/othertests/markup.py
@@ -1,6 +1,7 @@
# Quick tests for the markup templatetags (django.contrib.markup)
from django.template import Template, Context, add_to_builtins
+import re
add_to_builtins('django.contrib.markup.templatetags.markup')
@@ -47,7 +48,8 @@ markdown_content = """Paragraph 1
t = Template("{{ markdown_content|markdown }}")
rendered = t.render(Context(locals())).strip()
if markdown:
- assert rendered == """<p>Paragraph 1</p><h2>An h2</h2>"""
+ pattern = re.compile("""<p>Paragraph 1\s*</p>\s*<h2>\s*An h2</h2>""")
+ assert pattern.match(rendered)
else:
assert rendered == markdown_content