Some Python class and packages need to be renamed for a better compliance with the shared terminology which provides a better understanding of Watcher objects and components by every contributor. This patchset is there to change Meta-Action to Action Partially implements: blueprint glossary-related-refactoring Change-Id: Ie67b800332179be93718030ddd7a36ddc76a544c
31 lines
965 B
Python
31 lines
965 B
Python
# -*- encoding: utf-8 -*-
|
|
# Copyright (c) 2015 b<>com
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
# implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
from watcher.decision_engine.actions.base import BaseAction
|
|
from watcher.tests import base
|
|
|
|
|
|
class TestAction(base.TestCase):
|
|
def test_get_priority(self):
|
|
ma = BaseAction()
|
|
ma.priority = 3
|
|
self.assertEqual(ma.priority, 3)
|
|
|
|
def test_get_level(self):
|
|
ma = BaseAction()
|
|
ma.level = 5
|
|
self.assertEqual(ma.level, 5)
|