class documentation

class TestFailureTests(pyunit.TestCase): (source)

View In Hierarchy

Tests for the most basic functionality of SynchronousTestCase, for failing tests.

This class contains tests to demonstrate that SynchronousTestCase.fail can be used to fail a test, and that that failure is reflected in the test result object. This should be sufficient functionality so that further tests can be built on SynchronousTestCase instead of unittest.TestCase. This depends on unittest.TestCase working.

Class FailingTest Undocumented
Method setUp Load a suite of one test which can be used to exercise the failure handling behavior.
Method test_fail SynchronousTestCase.fail raises SynchronousTestCase.failureException with the given argument.
Method test_failingExceptionFails When a test method raises SynchronousTestCase.failureException, the test is marked as having failed on the TestResult.
Instance Variable loader Undocumented
Instance Variable suite Undocumented
Instance Variable test Undocumented
def setUp(self): (source)

Load a suite of one test which can be used to exercise the failure handling behavior.

def test_fail(self): (source)
def test_failingExceptionFails(self): (source)

When a test method raises SynchronousTestCase.failureException, the test is marked as having failed on the TestResult.

Undocumented

Undocumented

Undocumented