#NEWLINE# def test_get_plan_list( self ) : #NEWLINE# #INDENT# plan_mgr = plan . PlanManager ( self . plan_store , self . heatclient ) #NEWLINE# self . plan_store . list = mock . MagicMock ( return_value = [ 'overcloud' ] ) #NEWLINE# self . assertEqual ( [ 'overcloud' ] , plan_mgr . get_plan_list ( ) , 'get_plan_list failed' ) #NEWLINE# with mock . patch ( 'tripleo_common.core.plan.LOG' ) as log_mock : #NEWLINE# #INDENT# self . plan_store . list = mock . Mock ( side_effect = ValueError ( ) ) #NEWLINE# self . assertRaises ( ValueError , plan_mgr . get_plan_list ) #NEWLINE# log_mock . exception . assert_called_with ( 'Error retrieving plan list.' )