aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/vnf/router/vnf_controller/checker.py
diff options
context:
space:
mode:
authorCedric Ollivier <cedric.ollivier@orange.com>2018-01-29 13:46:23 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-01-29 13:46:23 +0000
commit3a042e00c533dae47014842ed345da6b321f5eb9 (patch)
tree76b07e57942b37d99b125fbf45b81ce2d88b637b /functest/opnfv_tests/vnf/router/vnf_controller/checker.py
parent5a77070ed767158017ceb8ea3c319af60c86b830 (diff)
parent01efa1e4229157b46d352bce202ed4192992dd3f (diff)
Merge "Fix last Pylint error in Functest"
Diffstat (limited to 'functest/opnfv_tests/vnf/router/vnf_controller/checker.py')
-rw-r--r--functest/opnfv_tests/vnf/router/vnf_controller/checker.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/functest/opnfv_tests/vnf/router/vnf_controller/checker.py b/functest/opnfv_tests/vnf/router/vnf_controller/checker.py
index 198a5ffc..a7a70f6d 100644
--- a/functest/opnfv_tests/vnf/router/vnf_controller/checker.py
+++ b/functest/opnfv_tests/vnf/router/vnf_controller/checker.py
@@ -7,6 +7,8 @@
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
+# pylint: disable=missing-docstring
+
"""vrouter test result check module"""
import json
@@ -24,7 +26,8 @@ class Checker(object):
def __init__(self):
self.logger.debug("init checker")
- def load_check_rule(self, rule_file_dir, rule_file_name, parameter):
+ @staticmethod
+ def load_check_rule(rule_file_dir, rule_file_name, parameter):
loader = FileSystemLoader(rule_file_dir,
encoding='utf8')
env = Environment(loader=loader)
@@ -33,7 +36,8 @@ class Checker(object):
check_rule_data = json.loads(check_rule)
return check_rule_data
- def regexp_information(self, response, rules):
+ @staticmethod
+ def regexp_information(response, rules):
status = False
result_data = {}