diff options
Diffstat (limited to 'tests/template_tests/test_nodelist.py')
| -rw-r--r-- | tests/template_tests/test_nodelist.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/tests/template_tests/test_nodelist.py b/tests/template_tests/test_nodelist.py index b0e97b88da..03c0d99651 100644 --- a/tests/template_tests/test_nodelist.py +++ b/tests/template_tests/test_nodelist.py @@ -1,7 +1,6 @@ from django.template import Context, Engine from django.template.base import TextNode, VariableNode -from django.test import SimpleTestCase, ignore_warnings -from django.utils.deprecation import RemovedInDjango40Warning +from django.test import SimpleTestCase class NodelistTest(SimpleTestCase): @@ -21,12 +20,6 @@ class NodelistTest(SimpleTestCase): vars = template.nodelist.get_nodes_by_type(VariableNode) self.assertEqual(len(vars), 1) - @ignore_warnings(category=RemovedInDjango40Warning) - def test_ifequal(self): - template = self.engine.from_string('{% ifequal x y %}{{ a }}{% endifequal %}') - vars = template.nodelist.get_nodes_by_type(VariableNode) - self.assertEqual(len(vars), 1) - def test_ifchanged(self): template = self.engine.from_string('{% ifchanged x %}{{ a }}{% endifchanged %}') vars = template.nodelist.get_nodes_by_type(VariableNode) |
