def setUp(self): self.mock_handle_http = mock.Mock(autospec=True, spec=handle_http, return_value=mock.sentinel.result)