#NEWLINE# @ setup ( { #NEWLINE# #INDENT# 'list-index02' : '{{ var.5 }}' , #NEWLINE# #UNINDENT# } ) #NEWLINE# def test_list_index02( self ) : #NEWLINE# #INDENT# '\n        Fail silently when the list index is out of range.\n        ' #NEWLINE# output = self . engine . render_to_string ( 'list-index02' , { #NEWLINE# #INDENT# 'var' : [ 'first item' , 'second item' ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# if self . engine . string_if_invalid : #NEWLINE# #INDENT# self . assertEqual ( output , 'INVALID' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . assertEqual ( self , '' )