Fix broken test after the recent 404 change

This commit is contained in:
Joseph Schorr 2016-09-27 17:14:56 +02:00
parent e1771abe58
commit fac9d9fc5d

View file

@ -200,7 +200,7 @@ class WebEndpointTestCase(EndpointTestCase):
def test_redirect_to_repository(self):
self.getResponse('web.redirect_to_repository', repository='foo/bar', expected_code=404)
self.getResponse('web.redirect_to_repository', repository='public/publicrepo', expected_code=302)
self.getResponse('web.redirect_to_repository', repository='devtable/simple', expected_code=404)
self.getResponse('web.redirect_to_repository', repository='devtable/simple', expected_code=403)
self.login('devtable', 'password')
self.getResponse('web.redirect_to_repository', repository='devtable/simple', expected_code=302)