Lucas Maystre added the comment: Alright, here's a version with more tests (unittest.mock is awesome!). I think it tests exactly what it should (and no more), i.e. that the arguments are correctly passed to `open`.
---------- Added file: http://bugs.python.org/file27729/filetype11175.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11175> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com