#NEWLINE# def test_patch_user_without_required_field( self ) : #NEWLINE# #INDENT# res = self . app . patch_json_api ( self . user_one_url , { #NEWLINE# #INDENT# 'data' : { #NEWLINE# #INDENT# 'id' : self . user_one . _id , #NEWLINE# 'type' : 'users' , #NEWLINE# 'attributes' : { #NEWLINE# #INDENT# 'family_name' : self . new_user_one_data [ 'data' ] [ 'attributes' ] [ 'family_name' ] , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , auth = res . user_one . auth ) #NEWLINE# assert_equal ( res . status_code , 200 ) #NEWLINE# assert_equal ( res . json [ 'data' ] [ 'attributes' ] [ 'family_name' ] , self . new_user_one_data [ 'data' ] [ 'attributes' ] [ 'family_name' ] ) #NEWLINE# self . user_one . reload ( ) #NEWLINE# assert_equal ( self . user_one . family_name , self . new_user_one_data [ 'data' ] [ 'attributes' ] [ 'family_name' ] )