diff options
-rw-r--r-- | vio/vio/tests/test_fake_identity_view.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vio/vio/tests/test_fake_identity_view.py b/vio/vio/tests/test_fake_identity_view.py index 0bea44d..2dde2d6 100644 --- a/vio/vio/tests/test_fake_identity_view.py +++ b/vio/vio/tests/test_fake_identity_view.py @@ -49,6 +49,14 @@ class TestFakeProjects(unittest.TestCase): self.assertEqual(200, resp.status_code) self.assertEqual(3, len(resp.data['projects'])) + def test_list_projects_unauth(self): + req = mock.Mock() + req.META = { + "HTTP_X_AUTH_TOKEN": "invalid" + } + resp = self.view.get(req) + self.assertEqual(401, resp.status_code) + class TestFakeToken(unittest.TestCase): |