class documentation
class TestFailureTests(pyunit.TestCase): (source)
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 |
|
Undocumented |
Method | set |
Load a suite of one test which can be used to exercise the failure handling behavior. |
Method | test |
SynchronousTestCase.fail raises SynchronousTestCase.failureException with the given argument. |
Method | test_failing |
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 |
When a test method raises SynchronousTestCase.failureException
, the test is marked as having failed on the TestResult
.