#NEWLINE# def test_render_template_include_other_template( self ) : #NEWLINE# #INDENT# other_template_path = os . path . join ( os . path . dirname ( __file__ ) , '..' , '..' , 'samples/tasks/scenarios/nova/boot.json' ) #NEWLINE# template = ( '{%% include "%s" %%}' % os . path . basename ( other_template_path ) ) #NEWLINE# with open ( other_template_path ) as f : #NEWLINE# #INDENT# other_template = f . read ( ) #NEWLINE# #UNINDENT# expect = api . Task . render_template ( other_template ) #NEWLINE# actual = api . Task . render_template ( template , os . path . dirname ( other_template_path ) ) #NEWLINE# self . assertEqual ( self , actual )