'This is the test for the symptom of the bug: because the block
context now contains two copies of the inherited block, that block
will be executed twice, and if it adds content to {{block.super}},
that content will be added twice.'

@override_settings(TEMPLATE_LOADERS=(('django.template.loaders.cached.Loader', ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader')),))
def test_super_extends_not_corrupted_by_placeholder_scan(self):

    template = get_template('placeholder_tests/test_super_extends_2.html')
    output = template.render({})
    self.assertEqual(['Whee'], [o for o in output.split('\n') if ('Whee' in o)])
    _get_placeholder_slots('placeholder_tests/test_super_extends_2.html')
    template = get_template('placeholder_tests/test_super_extends_2.html')
    output = template.render({})
    self.assertEqual(['Whee'], [o for o in output.split('\n') if ('Whee' in o)])
