title: UnitTest Python mock only one function multiple call
body: <p>I'm using Mock (<a href="http://www.voidspace.org.uk/python/mock/mock.html">http://www.voidspace.org.uk/python/mock/mock.html</a>), and came across a particular mock case that I cant figure out the solution.</p>
  
  <p>I have a function with multiple calls to some_function that is being Mocked.</p>
  
  <pre><code>def function():
      some_function(1)
      some_function(2)
      some_function(3)
  </code></pre>
  
  <p>I only wanna mock the first and third call to some_function. The second call I wanna to be made to the real some_function.</p>
  
  <p>I tried some alternatives with <a href="http://www.voidspace.org.uk/python/mock/mock.html#mock.Mock.mock_calls">http://www.voidspace.org.uk/python/mock/mock.html#mock.Mock.mock_calls</a>, but with no success. </p>
  
  <p>Thanks in advance for the help.</p>