test_protocol.py 文件源码

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

项目:htsget 作者: jeromekelleher 项目源码 文件源码
def test_basic_http_parsing(self):
        headers = {"a": "b", "b": "c"}
        ticket = get_ticket(urls=[get_http_ticket(EXAMPLE_URL, headers)])
        with tempfile.TemporaryFile("w+") as temp_file:
            dm = StoringUrlsDownloadManager(ticket, temp_file)
            dm.run()
        self.assertEqual(dm.stored_urls[0], (EXAMPLE_URL, headers))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号