summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vio/vio/tests/test_fake_identity_view.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/vio/vio/tests/test_fake_identity_view.py b/vio/vio/tests/test_fake_identity_view.py
index 58f5b61..7d802ff 100644
--- a/vio/vio/tests/test_fake_identity_view.py
+++ b/vio/vio/tests/test_fake_identity_view.py
@@ -38,3 +38,17 @@ class TestFakeProjects(unittest.TestCase):
}
resp = self.view.get(req, "1234abcd")
self.assertEqual(200, resp.status_code)
+
+
+class TestFakeToken(unittest.TestCase):
+
+ def setUp(self):
+ self.view = views.FakeToken()
+
+ @mock.patch.object(fakeResponse, "keystone_version")
+ def test_get_token(self, mock_keystone_version):
+ mock_keystone_version.return_value = {
+ "version": "v2"
+ }
+ resp = self.view.get(mock.Mock())
+ self.assertEqual(200, resp.status_code)