diff options
Diffstat (limited to 'testapi/opnfv_testapi/common/message.py')
-rw-r--r-- | testapi/opnfv_testapi/common/message.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testapi/opnfv_testapi/common/message.py b/testapi/opnfv_testapi/common/message.py index 98536ff..951cbaf 100644 --- a/testapi/opnfv_testapi/common/message.py +++ b/testapi/opnfv_testapi/common/message.py @@ -10,6 +10,10 @@ not_found_base = 'Could Not Found' exist_base = 'Already Exists' +def key_error(key): + return "KeyError: '{}'".format(key) + + def no_body(): return 'No Body' |