title: How to mock patch every method of a class
body: <p>I have a Test class with as many as 50 different method. I want to patch every method with a mock function.</p>
  
  <pre><code>prod = {"foo": "bar"}
  
  def TestClass:
    @patch(db.get_product, return_value=prod)
    def test_1:
      pass
    @patch(db.get_product, return_value=prod)
    def test_2:
      pass
    .
    .
    .
    @patch(db.get_product, return_value=prod)
    def test_50:
      pass
  </code></pre>
  
  <p>Is there any easy way to do this instead of repeating <code>@patch(db.get_product, return=prod)</code> 50 times?</p>