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 davidszotten@gmail.com, michael.foord
Date 2016-01-28.15:44:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1453995854.13.0.112210658981.issue26232@psf.upfronthosting.co.za>
In-reply-to
Content
create_autospec and Mock(spec=spec) are very different. Mock(spec=spec) creates a mock object with the same *attributes* as the original. It does not create functions like create_autospec can.
History
Date User Action Args
2016-01-28 15:44:14michael.foordsetrecipients: + michael.foord, davidszotten@gmail.com
2016-01-28 15:44:14michael.foordsetmessageid: <1453995854.13.0.112210658981.issue26232@psf.upfronthosting.co.za>
2016-01-28 15:44:14michael.foordlinkissue26232 messages
2016-01-28 15:44:14michael.foordcreate