#NEWLINE# def test_update_resource( self ) : #NEWLINE# #INDENT# urs_mock = self . tracker . scheduler_client . update_resource_stats #NEWLINE# self . tracker . _update ( self . context ) #NEWLINE# urs_mock . reset_mock ( ) #NEWLINE# self . tracker . compute_node . local_gb_used += 1 #NEWLINE# self . tracker . _update ( self . context ) #NEWLINE# urs_mock . assert_called_once_with ( self . tracker . compute_node )