Home | Trees | Index | Help |
|
---|
Package harold :: Module utesttools |
|
Function Summary | |
---|---|
Decorators | |
A decorator maker for test methods in test cases. | |
A parametrized decorator for test methods in test cases. | |
A decorator maker for test methods in test cases. | |
A parametrized decorator for test methods in test cases. |
Function Details |
---|
assertNotRaise(exception_class)A decorator maker for test methods in test cases. It checks that the decorated function does not raise the given exception class. Also known as class MyTest (TestCase): @failIfRaises (AttributeError) def test_x_has_y (self): "test that x has an attribute named y" self.x.y
|
assertRaises(exception_class)A parametrized decorator for test methods in test cases. It checks that the decorated function raises the given exception class. Usage example:class MyTest (TestCase): @failUnlessRaises (AttributeError) def test_x_has_no_y (self): "test that x has no attribute named y" self.x.y
|
failIfRaises(exception_class)A decorator maker for test methods in test cases. It checks that the decorated function does not raise the given exception class. Also known as class MyTest (TestCase): @failIfRaises (AttributeError) def test_x_has_y (self): "test that x has an attribute named y" self.x.y
|
failUnlessRaises(exception_class)A parametrized decorator for test methods in test cases. It checks that the decorated function raises the given exception class. Usage example:class MyTest (TestCase): @failUnlessRaises (AttributeError) def test_x_has_no_y (self): "test that x has no attribute named y" self.x.y
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Mon Dec 18 15:25:58 2006 | http://epydoc.sf.net |