你最喜欢的Python模拟库是什么?

你最喜欢的Python模拟库是什么?
我只用了一个,但我已经取得了良好的结果与迈克尔·福登的模拟:http://www.voidspace.org.uk/python/mock/

迈克尔的介绍说,它比我可以:

There are already several Python mocking libraries available, so why another one?

Most mocking libraries follow the ‘record -> replay’ pattern of mocking. I prefer the ‘action -> assertion’ pattern, which is more readable and intuitive particularly when working with the Python unittest module.

It also provides utility functions / objects to assist with testing, particularly monkey patching.

http://stackoverflow.com/questions/98053/what-is-your-favorite-python-mocking-library

本站文章除注明转载外,均为本站原创或编译
转载请明显位置注明出处:你最喜欢的Python模拟库是什么?