#NEWLINE# def update_post_error( self ) : #NEWLINE# #INDENT# response = self . client . put ( response . bad_url , self . good_data , format = 'json' ) #NEWLINE# self . assertEqual ( response . status_code , 404 ) #NEWLINE# self . set_up ( ) #NEWLINE# response = self . client . put ( self . good_url , self . bad_data , format = 'json' ) #NEWLINE# self . assertEqual ( response . status_code , 400 )