title: Return Iterable With Mock Python
body: <p>I'm trying to use Mock, to simulate a function in python. Here is my code:</p>
  
  <pre><code>    resp, content = request(...)
  </code></pre>
  
  <p>The request() function needs to return two values. Here's what I tried:</p>
  
  <pre><code>    with patch("syncdatetime.py") as sync_mock:
          sync_mock.request.return_value = [obj, '']
  </code></pre>
  
  <p>But when I run the test, I get the error "Mock object is not iterable." The request function returns an object of type Mock instead of a list. How can I patch the request function so that it returns a list?</p>