summaryrefslogtreecommitdiff
path: root/tests/template_tests/syntax_tests/test_extends.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-08-07 07:18:55 -0400
committerTim Graham <timograham@gmail.com>2015-08-08 07:33:15 -0400
commita3830f6d663aee9e91871002cbff7c57aee6d989 (patch)
tree4976576d0a4cb9fad39c89f38cb4229765dfb5b2 /tests/template_tests/syntax_tests/test_extends.py
parent64982cc2fb13ebc45982c64e25fdb7865e6d2499 (diff)
Refs #25236 -- Removed ifequal/ifnotequal usage.
Diffstat (limited to 'tests/template_tests/syntax_tests/test_extends.py')
-rw-r--r--tests/template_tests/syntax_tests/test_extends.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/template_tests/syntax_tests/test_extends.py b/tests/template_tests/syntax_tests/test_extends.py
index 3e65f4bf90..46600cb76c 100644
--- a/tests/template_tests/syntax_tests/test_extends.py
+++ b/tests/template_tests/syntax_tests/test_extends.py
@@ -42,7 +42,7 @@ inheritance_templates = {
'inheritance30': "1{% if optional %}{% block opt %}2{% endblock %}{% endif %}3",
'inheritance31': "{% extends 'inheritance30' %}{% block opt %}two{% endblock %}",
'inheritance32': "{% extends 'inheritance30' %}{% block opt %}two{% endblock %}",
- 'inheritance33': "1{% ifequal optional 1 %}{% block opt %}2{% endblock %}{% endifequal %}3",
+ 'inheritance33': "1{% if optional == 1 %}{% block opt %}2{% endblock %}{% endif %}3",
'inheritance34': "{% extends 'inheritance33' %}{% block opt %}two{% endblock %}",
'inheritance35': "{% extends 'inheritance33' %}{% block opt %}two{% endblock %}",
'inheritance36': "{% for n in numbers %}_{% block opt %}{{ n }}{% endblock %}{% endfor %}_",
@@ -322,7 +322,7 @@ class InheritanceTests(SimpleTestCase):
@setup(inheritance_templates)
def test_inheritance33(self):
"""
- Base template, putting block in a conditional {% ifequal %} tag
+ Base template, putting block in a conditional {% if %} tag
"""
output = self.engine.render_to_string('inheritance33', {'optional': 1})
self.assertEqual(output, '123')
@@ -330,7 +330,7 @@ class InheritanceTests(SimpleTestCase):
@setup(inheritance_templates)
def test_inheritance34(self):
"""
- Inherit from a template with block wrapped in an {% ifequal %} tag
+ Inherit from a template with block wrapped in an {% if %} tag
(in parent), still gets overridden
"""
output = self.engine.render_to_string('inheritance34', {'optional': 1})
@@ -339,7 +339,7 @@ class InheritanceTests(SimpleTestCase):
@setup(inheritance_templates)
def test_inheritance35(self):
"""
- Inherit from a template with block wrapped in an {% ifequal %} tag
+ Inherit from a template with block wrapped in an {% if %} tag
(in parent), still gets overridden
"""
output = self.engine.render_to_string('inheritance35', {'optional': 2})