mock(http://mock.readthedocs.org/en/latest/index.html) is a great tool in python for unit test. It can conveniently mock a method or class or dict.But I encountered a problem wh
You can always just create some silly class to do the same thing.
In [94]: class MockResponses(dict): ....: def redundantErrorResponses(self): ....: return {}