'#24338 -- Allow extending django.template.backends.django.Template
objects.'

def test_extends_generic_template(self):

    engine = Engine()
    parent = engine.from_string('{%    block    content    %}parent{%    endblock    %}')
    child = engine.from_string('{%    extends    parent    %}{%    block    content    %}child{%    endblock    %}')
    self.assertEqual(child.render(Context({'parent': parent})), 'child')
