default test method name in unittest framework

Vyacheslav Maslov slava.maslov at gmail.com
Sun May 6 21:17:44 EDT 2007


Hi, all!

i have question related to python's unit testing framework.

Take a look at unittest.TestCase class. The main method which contains all
code related to test case execution have name "run". But in the same time
constructor of unittest.TestCase class have param methodName with default
value "runTest", not "run"! Why? This leads to AttributeError exception if i
do not explicitly set methodName to "run" during TestCase initialization.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070507/ae2ed430/attachment.html>


More information about the Python-list mailing list