diff options
author | Ethan Lynn <ethanlynnl@vmware.com> | 2018-03-27 08:05:43 -0700 |
---|---|---|
committer | Ethan Lynn <ethanlynnl@vmware.com> | 2018-03-27 08:05:43 -0700 |
commit | bbdf117e7c7a1e53ffd1cde23aa8891d146a3db5 (patch) | |
tree | 0b0446b53351b6bc70932dea91ccc16a441ed088 | |
parent | d4e42150317f904c80adbc24303dee0f1863d306 (diff) |
Add test_patch for identityserver
add test_patch
Change-Id: I56dd29a4da2fa35bd0f3f63b853061a5fabe7d5e
Issue-ID: MULTICLOUD-199
Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
-rw-r--r-- | vio/vio/tests/test_proxy_identity_view.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vio/vio/tests/test_proxy_identity_view.py b/vio/vio/tests/test_proxy_identity_view.py index 42fe7ec..89143e7 100644 --- a/vio/vio/tests/test_proxy_identity_view.py +++ b/vio/vio/tests/test_proxy_identity_view.py @@ -28,3 +28,8 @@ class TestIdentityServer(unittest.TestCase): mock_build.return_value = ("http://onap.org", {}, None) self.view.get(mock.Mock(), "openstack_regionone") mock_req.assert_called_once() + + @mock.patch.object(BaseClient, "send") + def test_patch(self, mock_send): + self.view.patch(mock.Mock(), "openstack_regionone", None) + mock_send.assert_called_once() |