#NEWLINE# def test_ifchanged_render_once( self ) : #NEWLINE# #INDENT# '\n        #19890. The content of ifchanged template tag was rendered twice.\n        ' #NEWLINE# template = self . engine . from_string ( '{% ifchanged %}{% cycle "1st time" "2nd time" %}{% endifchanged %}' ) #NEWLINE# output = template . render ( Context ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) #NEWLINE# self . assertEqual ( self , '1st time' )