unit test for a printing method

noro amit.man at gmail.com
Mon Aug 28 11:53:19 EDT 2006


What is the proper way to test (using unit test) a method that print
information?
for example:

def A(s):
         print '---'+s+'---'

and i want to check that A("bla") really print out "---bla---"

thanks
amit




More information about the Python-list mailing list