Re: unittest assertRaises Problem

2007-04-16 Thread john
On Apr 16, 6:35 pm, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > On 16 Apr 2007 15:13:42 -0700, john <[EMAIL PROTECTED]> wrote: > > > > >All: > > >Hi. I am an experienced developer (15 yrs), but new to Python and have > >a question re unittest and assertRaises. No matter what I raise, > >assert

Re: unittest assertRaises Problem

2007-04-16 Thread Jean-Paul Calderone
On 16 Apr 2007 15:13:42 -0700, john <[EMAIL PROTECTED]> wrote: >All: > >Hi. I am an experienced developer (15 yrs), but new to Python and have >a question re unittest and assertRaises. No matter what I raise, >assertRaises is never successful. Here is the test code: > > >class Foo: >def testExc

Re: unittest assertRaises Problem

2007-04-16 Thread attn . steven . kuo
On Apr 16, 3:13 pm, "john" <[EMAIL PROTECTED]> wrote: > All: > > Hi. I am an experienced developer (15 yrs), but new to Python and have > a question re unittest and assertRaises. No matter what I raise, > assertRaises is never successful. Here is the test code: > > class Foo: > def testExceptio

unittest assertRaises Problem

2007-04-16 Thread john
All: Hi. I am an experienced developer (15 yrs), but new to Python and have a question re unittest and assertRaises. No matter what I raise, assertRaises is never successful. Here is the test code: class Foo: def testException(self): raise ValueError class FooTestCase(unittest.TestCa