#NEWLINE# def test_put_user_logged_in( self ) : #NEWLINE# #INDENT# res = self . app . put_json_api ( self . user_one_url , self . new_user_one_data , auth = self . user_one . auth ) #NEWLINE# assert_equal ( res . status_code , 200 ) #NEWLINE# assert_equal ( res . json [ 'data' ] [ 'attributes' ] [ 'full_name' ] , self . new_user_one_data [ 'data' ] [ 'attributes' ] [ 'full_name' ] ) #NEWLINE# assert_equal ( res . json [ 'data' ] [ 'attributes' ] [ 'given_name' ] , self . new_user_one_data [ 'data' ] [ 'attributes' ] [ 'given_name' ] ) #NEWLINE# assert_equal ( res . json [ 'data' ] [ 'attributes' ] [ 'middle_names' ] , self . new_user_one_data [ 'data' ] [ 'attributes' ] [ 'middle_names' ] ) #NEWLINE# assert_equal ( res . json [ 'data' ] [ 'attributes' ] [ 'family_name' ] , self . new_user_one_data [ 'data' ] [ 'attributes' ] [ 'family_name' ] ) #NEWLINE# assert_equal ( res . json [ 'data' ] [ 'attributes' ] [ 'suffix' ] , self . new_user_one_data [ 'data' ] [ 'attributes' ] [ 'suffix' ] ) #NEWLINE# assert_equal ( res . json [ 'data' ] [ 'attributes' ] [ 'gitHub' ] , self . new_user_one_data [ 'data' ] [ 'attributes' ] [ 'gitHub' ] ) #NEWLINE# assert_equal ( res . json [ 'data' ] [ 'attributes' ] [ 'personal_website' ] , self . new_user_one_data [ 'data' ] [ 'attributes' ] [ 'personal_website' ] ) #NEWLINE# assert_equal ( res . json [ 'data' ] [ 'attributes' ] [ 'twitter' ] , self . new_user_one_data [ 'data' ] [ 'attributes' ] [ 'twitter' ] ) #NEWLINE# assert_equal ( res . json [ 'data' ] [ 'attributes' ] [ 'linkedIn' ] , self . new_user_one_data [ 'data' ] [ 'attributes' ] [ 'linkedIn' ] ) #NEWLINE# assert_equal ( res . json [ 'data' ] [ 'attributes' ] [ 'impactStory' ] , self . new_user_one_data [ 'data' ] [ 'attributes' ] [ 'impactStory' ] ) #NEWLINE# assert_equal ( res . json [ 'data' ] [ 'attributes' ] [ 'orcid' ] , self . new_user_one_data [ 'data' ] [ 'attributes' ] [ 'orcid' ] ) #NEWLINE# assert_equal ( res . json [ 'data' ] [ 'attributes' ] [ 'researcherId' ] , self . new_user_one_data [ 'data' ] [ 'attributes' ] [ 'researcherId' ] ) #NEWLINE# self . user_one . reload ( ) #NEWLINE# assert_equal ( self . user_one . fullname , self . new_user_one_data [ 'data' ] [ 'attributes' ] [ 'full_name' ] ) #NEWLINE# assert_equal ( self . user_one . given_name , self . new_user_one_data [ 'data' ] [ 'attributes' ] [ 'given_name' ] ) #NEWLINE# assert_equal ( self . user_one . middle_names , self . new_user_one_data [ 'data' ] [ 'attributes' ] [ 'middle_names' ] ) #NEWLINE# assert_equal ( self . user_one . family_name , self . new_user_one_data [ 'data' ] [ 'attributes' ] [ 'family_name' ] ) #NEWLINE# assert_equal ( self . user_one . suffix , self . new_user_one_data [ 'data' ] [ 'attributes' ] [ 'suffix' ] ) #NEWLINE# assert_equal ( self . user_one . social [ 'github' ] , self . new_user_one_data [ 'data' ] [ 'attributes' ] [ 'gitHub' ] ) #NEWLINE# assert_equal ( self . user_one . social [ 'personal' ] , self . new_user_one_data [ 'data' ] [ 'attributes' ] [ 'personal_website' ] ) #NEWLINE# assert_equal ( self . user_one . social [ 'twitter' ] , self . new_user_one_data [ 'data' ] [ 'attributes' ] [ 'twitter' ] ) #NEWLINE# assert_equal ( self . user_one . social [ 'linkedIn' ] , self . new_user_one_data [ 'data' ] [ 'attributes' ] [ 'linkedIn' ] ) #NEWLINE# assert_equal ( self . user_one . social [ 'impactStory' ] , self . new_user_one_data [ 'data' ] [ 'attributes' ] [ 'impactStory' ] ) #NEWLINE# assert_equal ( self . user_one . social [ 'orcid' ] , self . new_user_one_data [ 'data' ] [ 'attributes' ] [ 'orcid' ] ) #NEWLINE# assert_equal ( self . user_one . social [ 'researcherId' ] , self . new_user_one_data [ 'data' ] [ 'attributes' ] [ 'researcherId' ] )