Re: Problem with using unittest module
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
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