summaryrefslogtreecommitdiffstats
path: root/testapi/opnfv_testapi/tests/unit
diff options
context:
space:
mode:
Diffstat (limited to 'testapi/opnfv_testapi/tests/unit')
-rw-r--r--testapi/opnfv_testapi/tests/unit/test_result.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/testapi/opnfv_testapi/tests/unit/test_result.py b/testapi/opnfv_testapi/tests/unit/test_result.py
index ae78237..2e0aa36 100644
--- a/testapi/opnfv_testapi/tests/unit/test_result.py
+++ b/testapi/opnfv_testapi/tests/unit/test_result.py
@@ -163,21 +163,21 @@ class TestResultCreate(TestResultBase):
req = self.req_d
req.pod_name = 'notExistPod'
(code, body) = self.create(req)
- self.assertEqual(code, httplib.NOT_FOUND)
+ self.assertEqual(code, httplib.FORBIDDEN)
self.assertIn(message.not_found_base, body)
def test_noProject(self):
req = self.req_d
req.project_name = 'notExistProject'
(code, body) = self.create(req)
- self.assertEqual(code, httplib.NOT_FOUND)
+ self.assertEqual(code, httplib.FORBIDDEN)
self.assertIn(message.not_found_base, body)
def test_noTestcase(self):
req = self.req_d
req.case_name = 'notExistTestcase'
(code, body) = self.create(req)
- self.assertEqual(code, httplib.NOT_FOUND)
+ self.assertEqual(code, httplib.FORBIDDEN)
self.assertIn(message.not_found_base, body)
def test_success(self):