Testing methods fail?
Martin Schulze
joey at infodrom.org
Mon Oct 4 18:50:57 CEST 2004
Bernhard Herzog wrote:
> Martin Schulze <joey at infodrom.org> writes:
>
> > Is there something as an easy way to test for a comparison to fail
> > without the surrounding test rountine failing? Something like
> > self.FailIfNotFail(self.MethodToFail(arg1, arg2))?
>
> I'm not sure what you mean exactly, but if you expect
> self.MethodToFail(arg1, arg2) to raise an exception you can test for
> that with assertRaises .
Great! From the name it looks like what I was missing in the docs.
Thanks,
Joey
--
Everybody talks about it, but nobody does anything about it! -- Mark Twain
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)