<s> from django . template import TemplateSyntaxError <EOL> from django . template . loader import get_template <EOL> from django . test import SimpleTestCase , override_settings <EOL> from . forms import TestForm <EOL> from . utils import TemplateTestMixin , template_path <EOL> @ override_settings ( <EOL> TEMPLATE_DIRS = [ template_path ( '<STR_LIT>' ) ] , <EOL> ) <EOL> class TestNestedTag ( TemplateTestMixin , SimpleTestCase ) : <EOL> def setUp ( self ) : <EOL> super ( TestNestedTag , self ) . setUp ( ) <EOL> self . ctx [ '<STR_LIT>' ] = TestForm ( ) <EOL> def test_invalid_noarg ( self ) : <EOL> with self . assertRaises ( TemplateSyntaxError ) : <EOL> get_template ( '<STR_LIT>' ) <EOL> def test_invalid_twoarg ( self ) : <EOL> with self . assertRaises ( TemplateSyntaxError ) : <EOL> get_template ( '<STR_LIT>' ) <EOL> def test_empty_nest ( self ) : <EOL> tmpl = get_template ( '<STR_LIT>' ) <EOL> output = tmpl . render ( self . ctx ) <EOL> self . assertEqual ( output , '<STR_LIT>' ) <EOL> def test_simple ( self ) : <EOL> tmpl = get_template ( '<STR_LIT>' ) <EOL> output = tmpl . render ( self . ctx ) <EOL> self . assertEqual ( output , '<STR_LIT>' ) <EOL> def test_asvar ( self ) : <EOL> tmpl = get_template ( '<STR_LIT>' ) <EOL> output = tmpl . render ( self . ctx ) <EOL> self . assertEqual ( output , '<STR_LIT>' ) <EOL> def test_nested_content_still_has_parent_widgets ( self ) : <EOL> tmpl = get_template ( '<STR_LIT>' ) <EOL> output = tmpl . render ( self . ctx ) <EOL> self . assertEqual ( output , '<STR_LIT>' ) </s>
