#NEWLINE# @ setup ( { #NEWLINE# #INDENT# 'list-index04' : '{{ var.1 }}' , #NEWLINE# #UNINDENT# } ) #NEWLINE# def test_list_index04( self ) : #NEWLINE# #INDENT# '\n        Fail silently when variable is a dict without the specified key.\n        ' #NEWLINE# output = self . engine . render_to_string ( 'list-index04' , { #NEWLINE# #INDENT# 'var' : { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# if output . engine . string_if_invalid : #NEWLINE# #INDENT# self . assertEqual ( output , 'INVALID' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . assertEqual ( output , '' )