Can a test case tell if VERBOSE is used in pyunit test?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Can a test case tell if VERBOSE is used in pyunit test?

From: Noah <noahspurrier@gmail.com>
Date: Tue Jan 31 2006 - 03:32:40 CET

Is there a way for a test case method in a class derived
from unittest.TestCase to tell if the harness was started
with the verbose option? I would like my test cases to
print out a little extra information if the tests were run with
-v or -vv.

yours,
Noah
Received on Tue Feb 7 20:18:26 2006