Can we pass a function and the mocker to another function for mocking?
<p>I want to pass the function form along with the mocker to another function in the testing class, and expect the function will be mocked after returning. However, it seemed not working, and thanks for any suggestions!</p>

<pre><code>class Cls():
   def submthd(self):
      return 0
   def mthd(self):
      a=self.submthd()
      return a

class Test_me(MockerTestCase):
   def setUp(self):
      pass

   def mockup(self,f,m):
      f = m.mock()
      f(ARGS)
      m.result(1)
      m.replay()

   def test_null(self):
      m=Mocker()
      o=Cls()
      self.mockup(o.submthd,m)
      self.assertEqual(o.mthd(),1)
      m.verify()
</code></pre>
