@setup(inheritance_templates)
    def test_inheritance30(self):
        output = self.engine.render_to_string('inheritance30', {'optional': True})
        self.assertEqual(output, '123')

    # Inherit from a template with block wrapped in an {% if %} tag
    # (in parent), still gets overridden
Base template, putting block in a conditional {% if %} tag
dataset/ETHPy150Open django/django/tests/template_tests/syntax_tests/test_extends.py/InheritanceTests.test_inheritance30