[ 源代码: python-mock-open ]
软件包:python3-mock-open(1.4.0-2)
python3-mock-open 的相关链接
Debian 的资源:
下载源码包 python-mock-open:
- [python-mock-open_1.4.0-2.dsc]
- [python-mock-open_1.4.0.orig.tar.gz]
- [python-mock-open_1.4.0-2.debian.tar.xz]
维护小组:
外部的资源:
- 主页 [github.com]
相似软件包:
Better mock for file I/O
The MockOpen class should work as a stand-in replacement for mock.mock_open with some added features (though it tries to conform to how the builtin 'open' works where the two differ).
Features include:
* Multiple file support, including a mapping-like access to file mocks by path. * Persistent file contents between calls to `open`. * All the regular file operations: 'read', 'readline', 'readlines', 'write', 'writelines', 'seek', 'tell'.