api_discover_test.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:treadmill 作者: Morgan-Stanley 项目源码 文件源码
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'])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号