From: Gabe W. <gw...@wa...> - 2002-01-26 06:40:05
|
I've checked in the first unit tests and already they've been a great help in debugging frame.py (just beginning!) I've decided test code should follow the conventions being used in the python base distro: * test code from all modules goes into separate modules under a separate test directory (in our case, beep/test) * test modules are named test_<name of stuff being tested> -- e.g. test_frame.py * use the framework of having one (or maybe more) test classes inside the module with ancillary support classes (e.g. mock object classes) as needed. Methods should be named test_<mnemonic for the test> so they can automagically be picked up by pyunit * see test_sample.py and test_frame.py -Gabe -- Gabe Wachob gw...@wa... Personal http://www.wachob.com CTO, WiredObjects http://www.wiredobjects.com |