#NEWLINE# def test_partial_put_user_logged_in( self ) : #NEWLINE# #INDENT# res = self . app . put_json_api ( self . user_one_url , { #NEWLINE# #INDENT# 'data' : { #NEWLINE# #INDENT# 'id' : self . user_one . _id , #NEWLINE# 'type' : 'users' , #NEWLINE# 'attributes' : { #NEWLINE# #INDENT# 'full_name' : 'new_fullname' , #NEWLINE# 'gitHub' : 'even_newer_github' , #NEWLINE# 'suffix' : 'The Millionth' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , auth = self . user_one . auth ) #NEWLINE# self . user_one . reload ( ) #NEWLINE# assert_equal ( res . status_code , 200 ) #NEWLINE# assert_equal ( res . json [ 'data' ] [ 'attributes' ] [ 'full_name' ] , 'new_fullname' ) #NEWLINE# assert_equal ( res . json [ 'data' ] [ 'attributes' ] [ 'suffix' ] , 'The Millionth' ) #NEWLINE# assert_equal ( res . json [ 'data' ] [ 'attributes' ] [ 'gitHub' ] , 'even_newer_github' ) #NEWLINE# assert_equal ( res . json [ 'data' ] [ 'attributes' ] [ 'given_name' ] , self . user_one . given_name ) #NEWLINE# assert_equal ( res . json [ 'data' ] [ 'attributes' ] [ 'middle_names' ] , self . user_one . middle_names ) #NEWLINE# assert_equal ( res . json [ 'data' ] [ 'attributes' ] [ 'family_name' ] , self . user_one . family_name ) #NEWLINE# assert_equal ( self . user_one . fullname , 'new_fullname' ) #NEWLINE# assert_equal ( self . user_one . suffix , 'The Millionth' ) #NEWLINE# assert_equal ( self . user_one . social [ 'github' ] , 'even_newer_github' )