[TIP] hasattr and Mock

Jacocks, Jeremy jjacocks at cars.com
Thu Aug 25 10:26:47 PDT 2011

This may be a known issue, but is there a good workaround to hasattr always returning true for a mocked object?

Any links or documentation on the subject would be helpful,

Thank you!


More information about the testing-in-python mailing list