X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=multivimbroker%2Fmultivimbroker%2Ftests%2Ftest_restcall.py;h=235d58ac0669824d6b37782b2b7ca713f094ce1a;hb=382204d0cc69fcd33f734ff3e172dcb5d5515b6b;hp=4ecf04ef1d12aebdac05b2975c0d8a4d08dc864c;hpb=a2be701e860a06df93083888e7d5f8c64cea4183;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)