- 授权协议: MIT
- 开发语言: Python
- 操作系统: 跨平台
- 软件首页: http://falcao.it/HTTPretty/
- 软件文档: http://falcao.it/HTTPretty/
软件介绍
HTTPretty 是一个 Python 的 HTTP 客户端模拟工具。
示例代码:
import requests
from sure import expect
from httpretty import HTTPretty
from httpretty import httprettified
@httprettified
def test_yipit_api_returning_deals():
HTTPretty.register_uri(HTTPretty.GET, "http://api.yipit.com/v1/deals/",
body='[{"title": "Test Deal"}]',
content_type="application/json")
response = requests.get('http://api.yipit.com/v1/deals/')
expect(response.json()).to.equal([{"title": "Test Deal"}])
Geometric Folding Algorithms
Erik D Demaine / Cambridge University Press / 2008-8-21 / GBP 35.99
Did you know that any straight-line drawing on paper can be folded so that the complete drawing can be cut out with one straight scissors cut? That there is a planar linkage that can trace out any alg......一起来看看 《Geometric Folding Algorithms》 这本书的介绍吧!
