Skip to content

Commit

Permalink
fix(#27): fix readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
h2non committed Dec 5, 2016
1 parent b927054 commit 9ca156d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ Basic mocking:
resp = requests.get('http://twitter.com/api/1/foobar')
assert resp.status_code == 404
assert resp.json() == {"error": "not found"}
assert len(mock.calls) == 1
assert mock.calls[0].request.url == 'http://twitter.com/api/1/foobar'
assert mock.calls[0].response.text == '{"error": "not found"}'
assert mock._matches == 1
Using the chainable API DSL:

Expand Down

0 comments on commit 9ca156d

Please sign in to comment.