diff options
| author | Noam <noamkush@gmail.com> | 2015-06-25 13:46:11 +0300 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-06-27 09:39:29 -0400 |
| commit | fd61ce3817251c487fd98c3ed178a8258775329e (patch) | |
| tree | 9b6a8eb29595038009f5ce23891b073cf94733b3 /tests/template_tests | |
| parent | 429680146304c44e92ecff655280bc464121f769 (diff) | |
[1.8.x] Fixed #25031 -- Fixed a regression in the unordered_list template filter.
Backport of e291fc4757e952fd4f663d88adca416b016db13e from master
Diffstat (limited to 'tests/template_tests')
| -rw-r--r-- | tests/template_tests/filter_tests/test_unordered_list.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/template_tests/filter_tests/test_unordered_list.py b/tests/template_tests/filter_tests/test_unordered_list.py index 77e5bab0c6..4fbc22a657 100644 --- a/tests/template_tests/filter_tests/test_unordered_list.py +++ b/tests/template_tests/filter_tests/test_unordered_list.py @@ -83,6 +83,13 @@ class FunctionTests(SimpleTestCase): '</li>\n\t</ul>\n\t</li>\n\t<li>item 2</li>', ) + def test_nested3(self): + self.assertEqual( + unordered_list(['item 1', 'item 2', ['item 2.1']]), + '\t<li>item 1</li>\n\t<li>item 2\n\t<ul>\n\t\t<li>item 2.1' + '</li>\n\t</ul>\n\t</li>', + ) + def test_nested_multiple(self): self.assertEqual( unordered_list(['item 1', ['item 1.1', ['item 1.1.1', ['item 1.1.1.1']]]]), |
