title: How to test a function with input call?
body: <p>I have a console program written in Python. It asks the user questions using the command:</p>
  
  <pre><code>some_input = input('Answer the question:', ...)
  </code></pre>
  
  <p>How would I test a function containing a call to <code>input</code> using <a href="http://pytest.org/latest/"><code>pytest</code></a>? 
  I wouldn't want to force a tester to input text many many times only to finish one test run.</p>