doctest-alike for a unix shell?

JW John-Whitlock at ieee.org
Mon Mar 13 13:52:13 EST 2006


1. Try os.popen:

>>> import os
>>> os.popen('echo Hello World').read()
'Hello World\n'

2. Try a test environment built for testing shell commands, such as
DejaGnu:
http://www.gnu.org/software/dejagnu/




More information about the Python-list mailing list