Notes on unittest.py
Chris McDonough
chrism at digicool.com
Mon Oct 23 07:56:20 EDT 2000
I did not know this... thank you!
----- Original Message -----
From: "Thomas Heller" <thomas.heller at ion-tof.com>
To: "Chris McDonough" <chrism at digicool.com>; <python-list at python.org>
Sent: Monday, October 23, 2000 7:39 AM
Subject: Re: Notes on unittest.py
> [I wrote]
> > You could also use the assertRaises() method in pyunit:
> >
> > def check_something_exception(self):
> > self.assertRaises(TheExceptionIThinkItWillRaise, "self.mything",
(-1,))
> >
> but this should have been:
>
> def check_something_exception(self):
> self.assertRaises(TheExceptionIThinkItWillRaise, self.mything, -1)
>
> Thomas
>
>
More information about the Python-list
mailing list