Giới Thiệu · Mock for Linux
After performing an action, you can make assertions about which methods or attributes were used and arguments they were called with. You can also specify return values and set specific attributes in the normal way. It also provides a mock.patch() decorator that handles patching module and class level attributes within the scope of a test, along with mock.sentinel for creating unique objects. Most mocking libraries follow the 'record -> replay' pattern of mocking. Mock uses the 'action -> assertion' pattern, which is more readable and intuitive; particularly when working with the Python unit test module.
có gì mới trong phiên bản 1.0 · Mock for Linux
Version 1.0 has added patch.stopall method to stop all active patches created by start and some bug fixes.
Full Specifications · Google Chrome Zing MP3
Phiên bản |
1.0 |
Cập nhật |
09/10/2012 (12 năm trước) |
Nhà phát triển |
Michael Foord |
Thể loại |
Developer Tools |
Hệ điều hành |
Linux |
Hệ điều hành cài đặt |
Linux
|
Yêu cầu |
None |
Lượt tải về |
274,018 |
Phần mềm ứng dụng cùng danh mục