diff -r 571ef27dfd73 django/contrib/markup/tests.py
a
|
b
|
|
22 | 22 | t = Template("{{ textile_content|textile }}") |
23 | 23 | rendered = t.render(Context(locals())).strip() |
24 | 24 | if textile: |
25 | | self.assertEqual(rendered, """<p>Paragraph 1</p> |
| 25 | # textile versions prior to 2.1.0 don't add a '\t' char before |
| 26 | # the second paragraph |
| 27 | if(int(textile.__version__.split('.')[1]) > 0): |
| 28 | expected_output = """<p>Paragraph 1</p> |
26 | 29 | |
27 | | <p>Paragraph 2 with “quotes” and <code>code</code></p>""") |
| 30 | \t<p>Paragraph 2 with “quotes” and <code>code</code></p>""" |
| 31 | else: |
| 32 | expected_output = """<p>Paragraph 1</p> |
| 33 | |
| 34 | <p>Paragraph 2 with “quotes” and <code>code</code></p>""" |
| 35 | self.assertEqual(rendered, expected_output) |
28 | 36 | else: |
29 | 37 | self.assertEqual(rendered, escape(textile_content)) |
30 | 38 | |