diff options
Diffstat (limited to 'tests/unit/test_webapp.py')
-rw-r--r-- | tests/unit/test_webapp.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/unit/test_webapp.py b/tests/unit/test_webapp.py index 5b6950b08..c06fc93db 100644 --- a/tests/unit/test_webapp.py +++ b/tests/unit/test_webapp.py @@ -110,3 +110,10 @@ class TestWebapp(ZuulTestCase): self.webapp.unregister_path('/custom') self.assertRaises(urllib.error.HTTPError, urllib.request.urlopen, req) + + def test_webapp_404_on_unknown_tenant(self): + req = urllib.request.Request( + "http://localhost:{}/non-tenant/status.json".format(self.port)) + e = self.assertRaises( + urllib.error.HTTPError, urllib.request.urlopen, req) + self.assertEqual(404, e.code) |