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 methane
Recipients docs@python, methane
Date 2014-01-11.18:25:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1389464749.27.0.908623013872.issue20222@psf.upfronthosting.co.za>
In-reply-to
Content
http://docs.python.org/3.3/library/unittest.mock-examples.html#mocking-chained-calls

> Let’s assume the object it returns is ‘file-like’, so we’ll ensure that our response object uses the builtin file as its spec.

and

> >>> mock_response = Mock(spec=file)
History
Date User Action Args
2014-01-11 18:25:49methanesetrecipients: + methane, docs@python
2014-01-11 18:25:49methanesetmessageid: <1389464749.27.0.908623013872.issue20222@psf.upfronthosting.co.za>
2014-01-11 18:25:49methanelinkissue20222 messages
2014-01-11 18:25:48methanecreate