This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author michael.foord
Recipients kushal.das, michael.foord
Date 2014-04-15.15:51:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
A common problem with unittest.mock.Mock is to mistype an assert method. Because mocks create attributes on demand your test will pass without error.

We should raise an AttributeError if you access any attribute name (that doesn't exist) starting with assert or assret. There should also be a keyword argument allowing you to get the old behaviour if you need it (but this new feature should be on by default).

Will also need docs.
Date User Action Args
2014-04-15 15:51:19michael.foordsetrecipients: + michael.foord, kushal.das
2014-04-15 15:51:18michael.foordsetmessageid: <>
2014-04-15 15:51:18michael.foordlinkissue21238 messages
2014-04-15 15:51:18michael.foordcreate