X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=utils%2Ftest%2Ftestapi%2Fopnfv_testapi%2Fcommon%2Fmessage.py;h=951cbaf9c72ef711bc2be241dc5f4ffb30171883;hb=820d55dd05fa39d7fe0d16ee9ab3f9046c10994c;hp=98536ff4be8831f03aa4671a8722b5999915a9e9;hpb=132fecf179dfcbaa7a39eabee0a65762600077d1;p=releng.git diff --git a/utils/test/testapi/opnfv_testapi/common/message.py b/utils/test/testapi/opnfv_testapi/common/message.py index 98536ff4b..951cbaf9c 100644 --- a/utils/test/testapi/opnfv_testapi/common/message.py +++ b/utils/test/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'