def test_redir_not_allowed(self, *_args):
"""Test redirection not allowed error when protocol not http"""
resp = self.app.get('/redir/srv/type2/cell1/foo/bar')
self.assertEqual(resp.status_code, http_client.BAD_REQUEST)
payload = json.loads(resp.data)
self.assertEqual('Redirection not allowed for p2 protocol',
payload['message'])
评论列表
文章目录