#NEWLINE# @ mock . patch ( 'cloudbaseinit.init.InitManager._get_plugins_section' ) #NEWLINE# def test_get_plugin_status( self , mock_get_plugins_section ) : #NEWLINE# #INDENT# self . osutils . get_config_value . return_value = 1 #NEWLINE# response = self . _init . _get_plugin_status ( self . osutils , 'fake id' , 'fake plugin' ) #NEWLINE# mock_get_plugins_section . assert_called_once_with ( 'fake id' ) #NEWLINE# self . osutils . get_config_value . assert_called_once_with ( 'fake plugin' , mock_get_plugins_section ( ) ) #NEWLINE# self . assertTrue ( ( self == 1 ) )