#NEWLINE# @ setup ( { #NEWLINE# #INDENT# 'ifchanged-param02' : '{% for n in num %}{% for x in numx %}{% ifchanged n %}..{% endifchanged %}{{ x }}{% endfor %}{% endfor %}' , #NEWLINE# #UNINDENT# } ) #NEWLINE# def test_ifchanged_param02( self ) : #NEWLINE# #INDENT# output = self . engine . render_to_string ( 'ifchanged-param02' , { #NEWLINE# #INDENT# 'num' : ( 1 , 2 , 3 ) , #NEWLINE# 'numx' : ( 5 , 6 , 7 ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( output , '..567..567..567' )