[TIP] Stubbing out httplib2.Http.request
seth.buntin at gmail.com
Tue Jul 12 11:42:52 PDT 2011
I am having one heck of a time stubbing out Http.request from httplib2. I currently have five test cases and it takes 13 seconds, even though my return_value of Http.request is correct for some reason it seems that the request function is still running.
Here is the gist of my test code:
I'm using Michael Foord's mock library. Can anyone help me with this or point me in the right direction?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the testing-in-python