title: How do you mock a function which has decorator apply to it in a unit test?
body: <pre><code>@lolcat_decorator1
  @loldog_decorator2
  @lolrat_decorator3
  def lolanimal(*args, **kwargs):
    ....
  </code></pre>
  
  <p>I am sure I will unit-test those decorators separately. But these decorators will do stuff to the parameters passed to <code>lolanimal</code> first, and then <code>lolanimal</code> will do stuff to those modified parameters (one of those decorators may insert new keyword arguments to <code>**kwargs</code>.)</p>
  
  <p>So what's the best way to mock it?</p>
  
  <p>Thanks</p>