summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vio/vio/tests/test_fake_identity_view.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/vio/vio/tests/test_fake_identity_view.py b/vio/vio/tests/test_fake_identity_view.py
index e27a8c4..0bea44d 100644
--- a/vio/vio/tests/test_fake_identity_view.py
+++ b/vio/vio/tests/test_fake_identity_view.py
@@ -40,6 +40,15 @@ class TestFakeProjects(unittest.TestCase):
resp = self.view.get(req, "1234abcd")
self.assertEqual(200, resp.status_code)
+ def test_list_projects(self):
+ req = mock.Mock()
+ req.META = {
+ "HTTP_X_AUTH_TOKEN": Token
+ }
+ resp = self.view.get(req)
+ self.assertEqual(200, resp.status_code)
+ self.assertEqual(3, len(resp.data['projects']))
+
class TestFakeToken(unittest.TestCase):