diff options
| author | Tim Graham <timograham@gmail.com> | 2015-08-17 09:47:55 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-09-23 19:31:09 -0400 |
| commit | 27b2321793c62fb2cbb00fd2830c9387a187a84f (patch) | |
| tree | 232a06ccf67399b1c4a2dda1b65d7abaee843410 /tests/template_tests/syntax_tests | |
| parent | 04ee4059d71dbc6aa029907e251360eaf00e11bb (diff) | |
Refs #24451 -- Removed comma-separated {% cycle %} syntax per deprecation timeline.
Diffstat (limited to 'tests/template_tests/syntax_tests')
| -rw-r--r-- | tests/template_tests/syntax_tests/test_cycle.py | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/tests/template_tests/syntax_tests/test_cycle.py b/tests/template_tests/syntax_tests/test_cycle.py index 9b2c8abe10..13073ef26d 100644 --- a/tests/template_tests/syntax_tests/test_cycle.py +++ b/tests/template_tests/syntax_tests/test_cycle.py @@ -1,6 +1,5 @@ from django.template import TemplateSyntaxError -from django.test import SimpleTestCase, ignore_warnings -from django.utils.deprecation import RemovedInDjango110Warning +from django.test import SimpleTestCase from ..utils import setup @@ -12,24 +11,6 @@ class CycleTagTests(SimpleTestCase): with self.assertRaises(TemplateSyntaxError): self.engine.get_template('cycle01') - @ignore_warnings(category=RemovedInDjango110Warning) - @setup({'cycle02': '{% cycle a,b,c as abc %}{% cycle abc %}'}) - def test_cycle02(self): - output = self.engine.render_to_string('cycle02') - self.assertEqual(output, 'ab') - - @ignore_warnings(category=RemovedInDjango110Warning) - @setup({'cycle03': '{% cycle a,b,c as abc %}{% cycle abc %}{% cycle abc %}'}) - def test_cycle03(self): - output = self.engine.render_to_string('cycle03') - self.assertEqual(output, 'abc') - - @ignore_warnings(category=RemovedInDjango110Warning) - @setup({'cycle04': '{% cycle a,b,c as abc %}{% cycle abc %}{% cycle abc %}{% cycle abc %}'}) - def test_cycle04(self): - output = self.engine.render_to_string('cycle04') - self.assertEqual(output, 'abca') - @setup({'cycle05': '{% cycle %}'}) def test_cycle05(self): with self.assertRaises(TemplateSyntaxError): @@ -40,24 +21,11 @@ class CycleTagTests(SimpleTestCase): with self.assertRaises(TemplateSyntaxError): self.engine.get_template('cycle06') - @ignore_warnings(category=RemovedInDjango110Warning) @setup({'cycle07': '{% cycle a,b,c as foo %}{% cycle bar %}'}) def test_cycle07(self): with self.assertRaises(TemplateSyntaxError): self.engine.get_template('cycle07') - @ignore_warnings(category=RemovedInDjango110Warning) - @setup({'cycle08': '{% cycle a,b,c as foo %}{% cycle foo %}{{ foo }}{{ foo }}{% cycle foo %}{{ foo }}'}) - def test_cycle08(self): - output = self.engine.render_to_string('cycle08') - self.assertEqual(output, 'abbbcc') - - @ignore_warnings(category=RemovedInDjango110Warning) - @setup({'cycle09': '{% for i in test %}{% cycle a,b %}{{ i }},{% endfor %}'}) - def test_cycle09(self): - output = self.engine.render_to_string('cycle09', {'test': list(range(5))}) - self.assertEqual(output, 'a0,b1,a2,b3,a4,') - @setup({'cycle10': "{% cycle 'a' 'b' 'c' as abc %}{% cycle abc %}"}) def test_cycle10(self): output = self.engine.render_to_string('cycle10') |
