#NEWLINE# @ patch ( 'pybuilder.pluginloader._load_plugin' ) #NEWLINE# @ patch ( 'pybuilder.pluginloader._install_external_plugin' ) #NEWLINE# def test_should_force_reinstall_vcs_plugin_before_first_loading_attempt( self , install , load ) : #NEWLINE# #INDENT# project = Mock ( ) #NEWLINE# downloader = DownloadingPluginLoader ( Mock ( ) ) #NEWLINE# load . return_value = Mock ( ) #NEWLINE# self . assertEquals ( load . return_value , downloader . load_plugin ( project , 'vcs:spam' , plugin_module_name = 'spam' ) ) #NEWLINE# install . assert_called_with ( project , 'vcs:spam' , None , downloader . logger , 'spam' , False , True ) #NEWLINE# self . assertEquals ( downloader . call_count , 1 )