Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/msabramo/capturemock_examples
Examples of using capturemock
https://github.com/msabramo/capturemock_examples
Last synced: 28 days ago
JSON representation
Examples of using capturemock
- Host: GitHub
- URL: https://github.com/msabramo/capturemock_examples
- Owner: msabramo
- License: mit
- Created: 2013-12-14T23:41:44.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-04-07T20:13:39.000Z (over 10 years ago)
- Last Synced: 2024-05-09T20:46:01.678Z (8 months ago)
- Language: Python
- Size: 219 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
capturemock_examples
====================[![Build
Status](https://travis-ci.org/msabramo/capturemock_examples.svg?branch=master)](https://travis-ci.org/msabramo/capturemock_examples)Examples of using
[CaptureMock](https://pypi.python.org/pypi/CaptureMock) to record and
replay calls in Python code.```
(capturemock)marca@marca-mac2:~/dev/git-repos/capturemock_examples$ python test_requests.py
resp =
resp.url = u'http://www.google.com/'
resp.status_code = 999
resp.text = u'This is a fake response from CaptureMock!'
resp.headers = CaseInsensitiveDict({'X-Foo': 'Bar', 'Server': 'Fake
(capturemock)', 'Content-Type': 'text/plain; charset=UTF-8'})
resp.headers['Content-Type'] = 'text/plain; charset=UTF-8'
```