Newsletter
First published: July 16, 2008, 6:06 p.m.
Last edited: July 16, 2008, 6:20 p.m.
Last edited: July 16, 2008, 6:20 p.m.
Mox
In working on Viricide, I spent a good deal of time writing unit tests for the server portion. The majority of my previous Python unit testing experience being at Google, I looked around on the internet for potentially similar solutions to write my unit tests in.I was surprised to discover that mock-object unit test frameworks for Python essentially boiled down to the following three solutions:
- The Python Mock Module (http://python-mock.sourceforge.net/)
- pMock (http://pmock.sourceforge.net/)
- Python Mocker (http://labix.org/mocker)
It appears that my friend totally pulled through, sent an email to the right people, and Mox was released on Google Code in mid-June.
Though I first noticed that Mox was available for download the day Protocol Buffers were released on Google Code (Mox is included in the Protocol Buffer source distribution as it is required for unit tests), the Google blog is now announcing Mox for general availability.
I guess I'm not surprised the announcement references other former Googlers requesting it, as it's a pretty sweet mock-object system. But hooray!
Also, do check out Protocol Buffers. I'm pretty excited about them, too.