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 <1397577078.96.0.678735725627.issue21238@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-04-15 15:51:19michael.foordsetrecipients: + michael.foord, kushal.das
2014-04-15 15:51:18michael.foordsetmessageid: <1397577078.96.0.678735725627.issue21238@psf.upfronthosting.co.za>
2014-04-15 15:51:18michael.foordlinkissue21238 messages
2014-04-15 15:51:18michael.foordcreate