title: Any way to reset a mocked method to its original state? - Python Mock - mock 1.0b1
body: <p>I have the following simplified class I'm mocking:</p>
  
  <pre><code>class myClass(object):
      @staticmethod
      def A():
          #...
  
      def check(self):
          #code...
          value = self.A()
          #more code...
  </code></pre>
  
  <p>In my first test I mock only the method A</p>
  
  <pre><code>from django.test import TestCase
  from mock import MagicMock
  import myClass
  
  class FirstTest(TestCase):
  
  def setUp(self):
      myClass.A = MagicMock(return_value = 'CPU')
  
  def test(self):
      #some tests 
      myClassObj = myClass()
      myClassObj.check()
  </code></pre>
  
  <p>Whereas in my second test I mock the entire check method:</p>
  
  <pre><code>from django.test import TestCase
  from mock import MagicMock
  import myClass
  
  class SecondTest(TestCase):
  
  def setUp(self):
      myClass.check = MagicMock(return_value = someObject)
  
  def test(self):
      #some tests 
      myClassObj = myClass()
      myClassObj.check()
  </code></pre>
  
  <p>Now my assertions from my first test fail because, instead of calling <code>check()</code> and mocking <code>A()</code> inside <code>check()</code>, it calls the completely mocked <code>check()</code> from my second test.</p>
  
  <p>Is there any way to clear and set the method to be 'normal' after the test? I tried <code>myClass.check.reset_mock()</code> already, but it doesn't seem to do anything. Moving the order of my tests doesn't do anything either. </p>
  
  <p>I'm using mock 1.0b1 for python from <a href="http://pypi.python.org/pypi/mock/" rel="noreferrer">http://pypi.python.org/pypi/mock/</a> </p>