How do you use the @patch decorator to patch the built-in input() function?
For example, here\'s a function in question.py that I\'d like to test, which contains a c
For Python 2.x:
@patch('__builtin__.input')
worked for me.