[TIP] Unable to mock.patch methods in __init__.py

Ratnadeep Debnath rtnpro at transifex.com
Sun Jul 15 12:34:19 PDT 2012

Hi all,

Is it OK to use mock.patch to patch stuff in applications (other than testing)?

What I have been trying to do is

Is it the correct approach to do it?

Please correct me if I am mistaken.


More information about the testing-in-python mailing list