Skip to content

Commit 53cc4cf

Browse files
author
Giorgio Salluzzo
committed
Merge branch 'master' of github.com:mindflayer/python-mocket
2 parents 97587ba + 6917869 commit 53cc4cf

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

README.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ Example:
104104
105105
import pook
106106
from mocket.plugins.pook_mock_engine import MocketEngine
107-
108-
pook.activate()
109107
110108
pook.set_mock_engine(MocketEngine)
111109
110+
pook.on()
111+
112112
url = 'http://twitter.com/api/1/foobar'
113113
status = 404
114114
response_json = {'error': 'foo'}
@@ -129,9 +129,6 @@ Example:
129129
assert resp.json() == response_json
130130
assert mock.calls == 2
131131
132-
pook.disable()
133-
134-
135132
First appearance
136133
================
137134
EuroPython 2013, Florence

0 commit comments

Comments
 (0)