#NEWLINE# @ mock . patch . object ( resource_tracker . ResourceTracker , '_update_usage_from_migration' ) #NEWLINE# def test_no_migrations( self , mock_update_usage ) : #NEWLINE# #INDENT# migrations = [ ] #NEWLINE# self . tracker . _update_usage_from_migrations ( self . context , migrations ) #NEWLINE# self . assertFalse ( mock_update_usage . called )