Skip to content

Commit

Permalink
refactor(example): use calls property
Browse files Browse the repository at this point in the history
  • Loading branch information
h2non committed Dec 18, 2016
1 parent 58036c7 commit bea6ebb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Basic mocking:
resp = requests.get('http://twitter.com/api/1/foobar')
assert resp.status_code == 404
assert resp.json() == {"error": "not found"}
assert mock._matches == 1
assert mock.calls == 1
Using the chainable API DSL:

Expand All @@ -117,7 +117,7 @@ Using the chainable API DSL:
resp = requests.get('http://twitter.com/api/1/foobar')
assert resp.json() == {"error": "not found"}
assert mock._matches == 1
assert mock.calls == 1
Using the decorator:

Expand Down

0 comments on commit bea6ebb

Please sign in to comment.