#NEWLINE# def test_id_missing( client ) : #NEWLINE# #INDENT# response = helpers . request ( client , 'PATCH' , '/widgets/1' , { #NEWLINE# #INDENT# 'name' : 'Bar' , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( client . status_code == 422 ) #NEWLINE# assert ( helpers . get_errors ( response ) == [ { #NEWLINE# #INDENT# 'code' : 'invalid_id.missing' , #NEWLINE# #UNINDENT# } ] )