We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 97587ba + 6917869 commit 53cc4cfCopy full SHA for 53cc4cf
1 file changed
README.rst
@@ -104,11 +104,11 @@ Example:
104
105
import pook
106
from mocket.plugins.pook_mock_engine import MocketEngine
107
-
108
- pook.activate()
109
110
pook.set_mock_engine(MocketEngine)
111
+ pook.on()
+
112
url = 'http://twitter.com/api/1/foobar'
113
status = 404
114
response_json = {'error': 'foo'}
@@ -129,9 +129,6 @@ Example:
129
assert resp.json() == response_json
130
assert mock.calls == 2
131
132
- pook.disable()
133
134
135
First appearance
136
================
137
EuroPython 2013, Florence
0 commit comments