197
198
response, json_body = call(self.handler.create, self.url, self.data)
198
199
self.assertEqual(response.status_code, 403)
199
200
expected_calls = mock_call('999').verify(
201
'foo bar', '127.0.0.1', self.data['email'], timer=ANY).call_list()
201
202
self.assertEqual(mock_captcha.mock_calls, expected_calls)
203
204
self.assertEqual(json_body['code'], "CAPTCHA_FAILURE")