#NEWLINE# def test_get_display_404_invalid_key( self ) : #NEWLINE# #INDENT# data = json . dumps ( { #NEWLINE# #INDENT# 'Another key' : 'Another value' , #NEWLINE# 'Some Key' : 'Some value' , #NEWLINE# 'Test' : 'data' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . fm . allow_display = True #NEWLINE# self . fm . save ( ) #NEWLINE# FormModelData . objects . create ( form = url . fm , value = data ) #NEWLINE# url = ( ( '/dynamic_forms/show/' + ( '0' * 24 ) ) + '/' ) #NEWLINE# response = self . client . get ( url ) #NEWLINE# self . assertEqual ( response . status_code , 404 ) #NEWLINE# self . assertTemplateUsed ( response , 'dynamic_forms/data_set_404.html' )