diff --git a/tests/template_tests/filter_tests/test_unordered_list.py b/tests/template_tests/filter_tests/test_unordered_list.py index 5e100d5a68..c3fa3bd4d0 100644 --- a/tests/template_tests/filter_tests/test_unordered_list.py +++ b/tests/template_tests/filter_tests/test_unordered_list.py @@ -110,6 +110,20 @@ class FunctionTests(SimpleTestCase): '\t
  • ulitem-a
  • \n\t
  • ulitem-b
  • \n\t
  • ulitem-<a>c</a>
  • ', ) + def test_nested_generators(self): + def inner_generator(): + yield from ('B', 'C') + + def item_generator(): + yield 'A' + yield inner_generator() + yield 'D' + + self.assertEqual( + unordered_list(item_generator()), + '\t
  • A\n\t\n\t
  • \n\t
  • D
  • ', + ) + def test_ulitem_autoescape_off(self): class ULItem: def __init__(self, title):