diff options
Diffstat (limited to 'opnfv_testapi/tests/unit/executor.py')
-rw-r--r-- | opnfv_testapi/tests/unit/executor.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/opnfv_testapi/tests/unit/executor.py b/opnfv_testapi/tests/unit/executor.py index b8f696c..72d9d33 100644 --- a/opnfv_testapi/tests/unit/executor.py +++ b/opnfv_testapi/tests/unit/executor.py @@ -18,6 +18,8 @@ def upload(excepted_status, excepted_response): status, body = self.upload(request) if excepted_status == httplib.OK: getattr(self, excepted_response)(body) + elif excepted_status == httplib.BAD_REQUEST: + self.assertEqual(excepted_response, body.msg) else: self.assertIn(excepted_response, body) return wrap |