Message255061
The unittest.mock module defines a mock_open utility to mock the builtin open function.
During a recent project I found I needed something more. Specifically, mocking different files at the same time, better mocking for operations (like seek, readlines, etc.) among others.
The project can also be found on http://github.com/nivbend/mock-open
Thanks |
|
Date |
User |
Action |
Args |
2015-11-21 16:23:05 | Niv Ben-David | set | recipients:
+ Niv Ben-David |
2015-11-21 16:23:04 | Niv Ben-David | set | messageid: <1448122983.8.0.049241542179.issue25690@psf.upfronthosting.co.za> |
2015-11-21 16:23:03 | Niv Ben-David | link | issue25690 messages |
2015-11-21 16:23:03 | Niv Ben-David | create | |
|