Re: Problem with using unittest module

2006-07-31 Thread Peter Otten
Olivier Langlois wrote: > I have the following statement in my test : > > self.assertRaises(CDKeyException, ValidationObject.Validate, > 1001,'NonExistantKey') > > and the test fails as if assertRaises was not catching the thrown > exception: > >

Problem with using unittest module

2006-07-31 Thread Olivier Langlois
Hi, I have the following statement in my test : self.assertRaises(CDKeyException, ValidationObject.Validate, 1001,'NonExistantKey') and the test fails as if assertRaises was not catching the thrown exception: == ERROR: test (DB