Notes on unittest.py
Chris McDonough
chrism at digicool.com
Mon Oct 23 07:56:20 EDT 2000
More information about the Python-list mailing list
Mon Oct 23 07:56:20 EDT 2000
- Previous message (by thread): please help with Windows 98 install
- Next message (by thread): Notes on unittest.py
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 > >
- Previous message (by thread): please help with Windows 98 install
- Next message (by thread): Notes on unittest.py
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list