aboutsummaryrefslogtreecommitdiffstats
path: root/moon_wrapper/tests/unit_python/api/test_wrapper.py
diff options
context:
space:
mode:
authorsgdt6900 <rhanafy.ext@orange.com>2018-01-11 11:59:46 +0200
committersgdt6900 <rhanafy.ext@orange.com>2018-02-12 17:04:57 +0200
commit67559fcdc829341f369f7d2c5b92f1e0dec42f04 (patch)
tree6527043092abf3a796e9d40a25058b58f7c9f3a0 /moon_wrapper/tests/unit_python/api/test_wrapper.py
parent626dc28a44b92a2bfe6473bf0b595dfee71e4d61 (diff)
adding comments for enahancement
fix handling exception issue return make response instead of json body update test case to check on response false instead of status code Change-Id: Iab8ea20fbe1713e09e79289e8bc73410bf90dc27 Signed-off-by: sgdt6900 <rhanafy.ext@orange.com>
Diffstat (limited to 'moon_wrapper/tests/unit_python/api/test_wrapper.py')
-rw-r--r--moon_wrapper/tests/unit_python/api/test_wrapper.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/moon_wrapper/tests/unit_python/api/test_wrapper.py b/moon_wrapper/tests/unit_python/api/test_wrapper.py
index be3e8576..bd6baf32 100644
--- a/moon_wrapper/tests/unit_python/api/test_wrapper.py
+++ b/moon_wrapper/tests/unit_python/api/test_wrapper.py
@@ -68,4 +68,5 @@ def test_authz_error_no_interface_key(context):
'target': json.dumps(_target),
'credentials': 'null'}
req = client.post("/authz/oslo", data=json.dumps(authz_data))
- assert req.status_code == 403 \ No newline at end of file
+
+ assert req.data == b"False" \ No newline at end of file