Author a.badger
Recipients a.badger
Date 2013-03-18.20:09:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1363637353.75.0.10594649772.issue17467@psf.upfronthosting.co.za>
In-reply-to
Content
unittest.mock provides a mock_open convenience function[1].  The convenience function handled file.read() but does not handle file.readline() or file.readlines().  I'll attach a patch that adds support for both of these methods.

[1]: http://docs.python.org/3/library/unittest.mock.html#mock-open
History
Date User Action Args
2013-03-18 20:09:13a.badgersetrecipients: + a.badger
2013-03-18 20:09:13a.badgersetmessageid: <1363637353.75.0.10594649772.issue17467@psf.upfronthosting.co.za>
2013-03-18 20:09:13a.badgerlinkissue17467 messages
2013-03-18 20:09:13a.badgercreate