Problem with Unittest - Thanks:
Frithiof Andreas Jensen
frithiof.jensen at removethis.ted.ericsson.dk
Wed May 14 11:22:34 EDT 2003
"Frithiof Andreas Jensen" <frithiof.jensen at removethis.ted.ericsson.dk> wrote
in message news:b9r15s$1v$1 at newstree.wise.edt.ericsson.se...
Thanks for the help!
Just to be sure ;-)
Is it legal, moral and commendable to raise exceptions like: 'raise
ValueError('some explanation text')?
and in unittest one would test them with:
assertRaises(ValueError, function, (tuple-of-parameters) )
This seems to work, at least?
More information about the Python-list
mailing list