#NEWLINE# @ patch ( 'pybuilder.reactor.imp.load_source' , return_value = Mock ( ) ) #NEWLINE# def test_should_return_module_when_loading_project_module_and_import_raises_exception( self , imp_load_source ) : #NEWLINE# #INDENT# self . assertTrue ( ( imp_load_source . return_value is self . reactor . load_project_module ( 'spam' ) ) ) #NEWLINE# imp_load_source . assert_called_with ( 'build' , 'spam' )