class TestDecoratorMixin: (source)
Known subclasses: twisted.trial.test.test_tests.AsynchronousTestDecoratorTests
, twisted.trial.test.test_tests.SynchronousTestDecoratorTests
Tests for our test decoration features.
Method | assert |
Assert that the given test suites with decorated tests are equal. |
Method | assert |
Assert that the given decorated tests are equal. |
Method | test_decorate |
Calling decorate on a test suite with already-decorated tests decorates all of the tests in the suite again. |
Method | test_decorate |
Calling decorate on a test suite will mutate the original suite. |
Method | test_decorate |
Calling decorate on a test suite with nested suites will return a test suite that maintains the same structure, but with all tests decorated. |
Method | test_decorate |
Tests can be in non-standard suites. decorate preserves the non-standard suites when it decorates the tests. |
Method | test_decorate |
Calling decorate on a single test case returns the test case decorated with the provided decorator. |
Method | test_decorate |
Calling decorate on a test suite will return a test suite with each test decorated with the provided decorator. |
Method | test_decorate |
When decorating a test suite in-place, the number of references to the test objects in that test suite should stay the same. |
Method | test_uses |
For decorated tests, __call__ uses a result adapter that preserves the test decoration for calls to addError, startTest and the like. |
Method | test_uses |
For decorated tests, run uses a result adapter that preserves the test decoration for calls to addError, startTest and the like. |
Calling decorate
on a test suite with already-decorated tests decorates all of the tests in the suite again.
Calling decorate
on a test suite with nested suites will return a test suite that maintains the same structure, but with all tests decorated.
Tests can be in non-standard suites. decorate
preserves the non-standard suites when it decorates the tests.
Calling decorate
on a test suite will return a test suite with each test decorated with the provided decorator.
When decorating a test suite in-place, the number of references to the test objects in that test suite should stay the same.
Previously, unittest.decorate
recreated a test suite, so the original suite kept references to the test objects. This test is here to ensure the problem doesn't reappear again.
For decorated tests, __call__ uses a result adapter that preserves the test decoration for calls to addError, startTest and the like.