summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vio/vio/tests/test_proxy_identity_view.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/vio/vio/tests/test_proxy_identity_view.py b/vio/vio/tests/test_proxy_identity_view.py
index d9364ab..b60725c 100644
--- a/vio/vio/tests/test_proxy_identity_view.py
+++ b/vio/vio/tests/test_proxy_identity_view.py
@@ -73,3 +73,10 @@ class TestTokenView(unittest.TestCase):
mock_req.return_value = res
resp = self.view.get(req, "vmware_nova")
self.assertEqual(resp.status_code, 200)
+
+ @mock.patch.object(extsys, "get_vim_by_id")
+ def test_get_v2(self, mock_getvim):
+ req = mock.Mock()
+ req.get_full_path.return_value = "identity/v2.0"
+ resp = self.view.get(req, "vmware_nova")
+ self.assertEqual(resp.status_code, 405)