#NEWLINE# def test_id_forbidden( client ) : #NEWLINE# #INDENT# response = helpers . request ( client , 'POST' , '/widgets' , { #NEWLINE# #INDENT# 'id' : '2' , #NEWLINE# 'name' : 'Bar' , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( client . status_code == 403 ) #NEWLINE# assert ( helpers . get_errors ( response ) == [ { #NEWLINE# #INDENT# 'code' : 'invalid_id.forbidden' , #NEWLINE# #UNINDENT# } ] )