#NEWLINE# def test_update_token_no_attributes( self ) : #NEWLINE# #INDENT# payload = { #NEWLINE# #INDENT# 'id' : self . user1_token . _id , #NEWLINE# 'type' : 'tokens' , #NEWLINE# 'name' : 'The token formerly known as Prince' , #NEWLINE# #UNINDENT# } #NEWLINE# res = self . app . put_json_api ( res . user1_token_url , payload , auth = self . user1 . auth , expect_errors = True ) #NEWLINE# assert_equal ( res . status_code , 400 )