test_requests.py 文件源码

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

项目:Codeforces-Sublime-Plugin 作者: karunk 项目源码 文件源码
def test_requote_uri_with_unquoted_percents(self):
        """Ensure we handle unquoted percent signs in redirects.

        See: https://github.com/kennethreitz/requests/issues/2356
        """
        from requests.utils import requote_uri
        bad_uri = 'http://example.com/fiz?buz=%ppicture'
        quoted = 'http://example.com/fiz?buz=%25ppicture'
        assert quoted == requote_uri(bad_uri)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号