#NEWLINE# @ setup ( { #NEWLINE# #INDENT# 'cycle20' : '{% cycle one two as foo %} &amp; {% cycle foo %}' , #NEWLINE# #UNINDENT# } ) #NEWLINE# def test_cycle20( self ) : #NEWLINE# #INDENT# output = self . engine . render_to_string ( 'cycle20' , { #NEWLINE# #INDENT# 'two' : 'C & D' , #NEWLINE# 'one' : 'A & B' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( output , 'A &amp; B &amp; C &amp; D' )