summaryrefslogtreecommitdiffstats
path: root/testapi/opnfv_testapi/common/message.py
diff options
context:
space:
mode:
Diffstat (limited to 'testapi/opnfv_testapi/common/message.py')
-rw-r--r--testapi/opnfv_testapi/common/message.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/testapi/opnfv_testapi/common/message.py b/testapi/opnfv_testapi/common/message.py
index 8b5c3fb..3e14f72 100644
--- a/testapi/opnfv_testapi/common/message.py
+++ b/testapi/opnfv_testapi/common/message.py
@@ -26,6 +26,10 @@ def missing(name):
return '{} Missing'.format(name)
+def invalid_value(name, options):
+ return '{} must be in {}'.format(name, options)
+
+
def exist(key, value):
return '{} [{}] {}'.format(key, value, exist_base)