From 67559fcdc829341f369f7d2c5b92f1e0dec42f04 Mon Sep 17 00:00:00 2001 From: sgdt6900 Date: Thu, 11 Jan 2018 11:59:46 +0200 Subject: 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 --- moon_wrapper/tests/unit_python/api/test_wrapper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'moon_wrapper/tests') 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 -- cgit 1.2.3-korg