[TIP] Mocking import functions
yusuf.mahdi at gmail.com
Fri Feb 7 07:42:49 PST 2014
I am at my wits end pretty much. I am not sure what is happening here.
I am unable to mock an import function. My code is
After some reading I know you patch where the function is used not where
I have also tried everything else but the mechanize_url is till running as
implemented in code not mocked in test.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the testing-in-python