[Edu-sig] UnitTest?
Vernon Cole
vernondcole at gmail.com
Thu Feb 24 17:25:24 CET 2011
I think for most high-school level work, use of the "assert" statement would
be the first thing to teach.
It can be used in an "if __name__ == '__main__': " construct in a module to
make a good quick test.
see https://launchpad.net/romanclass as an example.
Simple modules do not need anything as complex as unittest. It would be a
good advanced subject, though.
--
Vernon Cole
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/edu-sig/attachments/20110224/171774d4/attachment.html>
More information about the Edu-sig
mailing list