title: Pytest bdd with mock patch?
body: <p>Anyone have a working example of using pytest bdd with a mock.patch?  Ie.</p>
  
  <pre><code>
  @when(I do this)
  def do_this_thing():
     with mock.patch('myinnerfunc', return_value=False):
        myfunc()
  </code></pre>
  
  <p>So in above I would want to mock a function call myinnerfunc inside myfunc.</p>
  
  <p>In my real example, it just does not mock the inner function</p>