[Pythonmac-SIG] Testing applications with console input?

Kevin Horton khorton01 at rogers.com
Tue May 22 00:49:20 CEST 2007


I'm working on a small application that will respond to user input  
via the console.  It is a very simple interface, with user input via  
"raw_input()", and the application produces result via "print"  
statements.  I'm using python 2.5.1 on OS X, installed via Fink, but  
I'll also use the application with Movable Python 2.4.3 on Windows.

I've got unit tests for many of the discrete units, but I still need  
to write some tests for the user interface, to help catch problems  
when refactoring code, etc.  I've searched the web, but I can't find  
any description of how to write tests for such a user interface.  Any  
advice would be appreciated.

Kevin Horton
Ottawa, Canada




More information about the Pythonmac-SIG mailing list