
Now it is possible to mock not only a function but also a class: class TestClass(object) def test_func_a(self, m): m.register_uri('GET', 'http://test.com', text='data') ... def test_func_b(self, m) m.register_uri('GET', 'http://test.com', text='data') ... This new behavior mimics behavior of `patch` from `mock` library. Added docs for this new feature. Closes-Bug: #1404805 Change-Id: I8303dc4bc682cf12ffe86e7712b5a1c54de83efb