summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vio/vio/tests/test_proxy_identity_view.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/vio/vio/tests/test_proxy_identity_view.py b/vio/vio/tests/test_proxy_identity_view.py
index b60725c..d3a52b8 100644
--- a/vio/vio/tests/test_proxy_identity_view.py
+++ b/vio/vio/tests/test_proxy_identity_view.py
@@ -80,3 +80,14 @@ class TestTokenView(unittest.TestCase):
req.get_full_path.return_value = "identity/v2.0"
resp = self.view.get(req, "vmware_nova")
self.assertEqual(resp.status_code, 405)
+
+ @mock.patch.object(BaseClient, "buildRequest")
+ @mock.patch.object(BaseClient, "_request")
+ def test_delete(self, mock_req, mock_build):
+ req = mock.Mock()
+ req.META = {
+ "HTTP_X_SUBJECT_TOKEN": "aaa"
+ }
+ mock_build.return_value = ("http://onap.org", {}, None)
+ self.view.delete(req, "openstack_regionone")
+ mock_req.assert_called_once()