[TIP] testing __init__
alfredodeza at gmail.com
Fri Apr 9 17:54:23 PDT 2010
I am having issues testing the constructor of a class that has a try/except
Should __init__ raise an exception so I can catch via self.assertRaises to
make it easier to test? Or are there other ways
to make __init__ "testable"?
What is the way you guys use the most (or like the best) for testing
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the testing-in-python