Sebastian Kalinowski 1774bb11a9 Allow to decorate class with mock
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
2014-12-22 08:37:55 +01:00
..
2014-04-10 13:13:07 +10:00
2014-04-10 13:13:07 +10:00
2014-06-23 16:03:40 +10:00
2014-08-01 14:48:45 +10:00