X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=multivimbroker%2Fmultivimbroker%2Ftests%2Ftest_restcall.py;fp=multivimbroker%2Fmultivimbroker%2Ftests%2Ftest_restcall.py;h=235d58ac0669824d6b37782b2b7ca713f094ce1a;hb=3b7133a34ea3b55c65c646d92a6e905b62d9e2e5;hp=4ecf04ef1d12aebdac05b2975c0d8a4d08dc864c;hpb=0ed08905a821ab0c1d1a2ed5cc1d4fe605d94e64;p=multicloud%2Fframework.git diff --git a/multivimbroker/multivimbroker/tests/test_restcall.py b/multivimbroker/multivimbroker/tests/test_restcall.py index 4ecf04e..235d58a 100644 --- a/multivimbroker/multivimbroker/tests/test_restcall.py +++ b/multivimbroker/multivimbroker/tests/test_restcall.py @@ -41,3 +41,15 @@ class TestRestCall(unittest.TestCase): mock_call.assert_called_once_with( expect_url, expect_user, expect_pass, restcall.rest_no_auth, res, "GET", content, expect_headers) + + @mock.patch.object(restcall, "call_req") + def test_req_by_msb(self, mock_call): + res = "multicloud" + method = "GET" + content = "no content" + headers = None + restcall.req_by_msb(res, method, content=content, headers=headers) + expect_url = "http://127.0.0.1:10080/" + mock_call.assert_called_once_with( + expect_url, "", "", restcall.rest_no_auth, res, method, + content, headers)