The basic pattern shown in the first page of the tutorial will work for most unit testing. It also shows a use of makeSuite(), but you can easily get by without using makeSuite().
http://docs.python.org/lib/node160.html
The page on "Organizing Test Code" is, IMO, more confusing than helpful. It shows some of the building blocks of tests and some ways of using unittest that I have never seen in practice.
HTH Kent
Guillermo Fernandez Castellanos wrote:
Hi,
I've been through the unittest tutorial page and I've seen this function: suite = unittest.makeSuite(Testname,'test')
In the python 2.4 Python Library Reference I have find no reference to such a fucntion (there is an example, exactly the same but without the 'test' parameter).
I could not really understand the sources neither...
What is the 'test' parameter? Is there another possible values? Any reference of the function?
Thanks!
Guille _______________________________________________ Tutor maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/tutor
_______________________________________________ Tutor maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/tutor
