diff --git a/tests/template_tests/syntax_tests/test_if.py b/tests/template_tests/syntax_tests/test_if.py
index 711f871af9..2c7c746138 100644
a
|
b
|
class IfTagTests(SimpleTestCase):
|
591 | 591 | output = self.engine.render_to_string('template', {'foo': None}) |
592 | 592 | self.assertEqual(output, 'no') |
593 | 593 | |
| 594 | @setup({'template': '{% if x is None %}print None{% endif %}{% if x == "" %}print empty{% endif %}'}) |
| 595 | def test_if_none_x(self): |
| 596 | output = self.engine.render_to_string('template', {'x': None}) |
| 597 | self.assertEqual(output, 'print None') |
| 598 | |
| 599 | @setup({'template': '{% with x=foo %}{% if x is None %}print None{% endif %}{% if x == "" %}print empty{% endif %}{% endwith %}'}) |
| 600 | def test_if_none_x_with(self): |
| 601 | output = self.engine.render_to_string('template', {'foo': None}) |
| 602 | self.assertEqual(output, 'print None') |
| 603 | |
594 | 604 | @setup({'template': '{% if foo is not bar %}yes{% else %}no{% endif %}'}) |
595 | 605 | def test_if_is_not_variable_missing(self): |
596 | 606 | output = self.engine.render_to_string('template', {'foo': False}) |