#NEWLINE# def test_patch_user_logged_out( self ) : #NEWLINE# #INDENT# res = self . app . patch_json_api ( self . user_one_url , { #NEWLINE# #INDENT# 'data' : { #NEWLINE# #INDENT# 'id' : res . user_one . _id , #NEWLINE# 'type' : 'users' , #NEWLINE# 'attributes' : { #NEWLINE# #INDENT# 'full_name' : self . new_user_one_data [ 'data' ] [ 'attributes' ] [ 'full_name' ] , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , expect_errors = True ) #NEWLINE# assert_equal ( res . status_code , 401 )