#NEWLINE# def test_deauthorize_node( self ) : #NEWLINE# #INDENT# url = self . project . api_url_for ( '{0}_deauthorize_node' . format ( self . ADDON_SHORT_NAME ) ) #NEWLINE# res = self . app . delete ( url , auth = self . user . auth ) #NEWLINE# assert_equal ( res . status_code , http . OK ) #NEWLINE# self . node_settings . reload ( ) #NEWLINE# assert_is_none ( self . node_settings . external_account ) #NEWLINE# assert_false ( self . node_settings . has_auth ) #NEWLINE# self . project . reload ( ) #NEWLINE# last_log = self . project . logs [ ( - 1 ) ] #NEWLINE# assert_equal ( last_log . action , '{0}_node_deauthorized' . format ( self . ADDON_SHORT_NAME ) )