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 michael.foord, pitrou
Date 2013-01-28.13:21:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1359379274.48.0.366854241287.issue17063@psf.upfronthosting.co.za>
In-reply-to
Content
Oh, you want the assert_called_with call to *return* the objects compared with the placeholder? 

Well, mock.ANY already exists and you can pull the arguments out for individual assertions using some_mock.call_args.

args, kwargs = some_mock.call_args
History
Date User Action Args
2013-01-28 13:21:14michael.foordsetrecipients: + michael.foord, pitrou
2013-01-28 13:21:14michael.foordsetmessageid: <1359379274.48.0.366854241287.issue17063@psf.upfronthosting.co.za>
2013-01-28 13:21:14michael.foordlinkissue17063 messages
2013-01-28 13:21:14michael.foordcreate