VCR.py - HTTP 交互模拟库
MIT
跨平台
Python
软件简介
VCR.py 可自动化的模拟你的 HTTP 交互来简化和加速测试。VCR.py 是 Ruby 版本的
VCR 的 Python 移植版本。
使用方法:
import vcr
import urllib2
with vcr.use_cassette('fixtures/vcr_cassettes/synopsis.yaml'):
response = urllib2.urlopen('http://www.iana.org/domains/reserved').read()
assert 'Example domains' in response