class SuppressionMixin: (source)
Known subclasses: twisted.trial.test.test_suppression.SynchronousSuppressionTests
, twisted.trial.test.test_tests.AsynchronousSuppressionTests
Tests for the warning suppression features of twisted.trial.unittest.SynchronousTestCase
.
Method | run |
Undocumented |
Method | test_override |
The suppression set on a test method completely overrides a suppression with wider scope; if it does not match a warning emitted by that test method, the warning is emitted, even if a wider suppression matches. |
Method | test_set |
Suppressions defined by the test method being run are applied to any warnings emitted while running the setUp fixture. |
Method | test_suppress |
A suppression set on a SynchronousTestCase subclass prevents warnings emitted by any test methods defined on that class which match the suppression from being emitted. |
Method | test_suppress |
A suppression set on a test method prevents warnings emitted by that test method which the suppression matches from being emitted. |
Method | test_suppress |
A suppression set on a module prevents warnings emitted by any test mewthods defined in that module which match the suppression from being emitted. |
Method | test_tear |
Suppressions defined by the test method being run are applied to any warnings emitted while running the tearDown fixture. |
Method | _assert |
Assert that a certain number of warnings with certain messages were emitted in a certain order. |
Method | _load |
Return a new unittest.TestSuite with a single test method in it. |
The suppression set on a test method completely overrides a suppression with wider scope; if it does not match a warning emitted by that test method, the warning is emitted, even if a wider suppression matches.
Suppressions defined by the test method being run are applied to any warnings emitted while running the setUp fixture.
A suppression set on a SynchronousTestCase
subclass prevents warnings emitted by any test methods defined on that class which match the suppression from being emitted.
A suppression set on a test method prevents warnings emitted by that test method which the suppression matches from being emitted.
A suppression set on a module prevents warnings emitted by any test mewthods defined in that module which match the suppression from being emitted.
Suppressions defined by the test method being run are applied to any warnings emitted while running the tearDown fixture.
Assert that a certain number of warnings with certain messages were emitted in a certain order.
Parameters | |
warnings | A list of emitted warnings, as returned by flushWarnings. |
which | A list of strings giving warning messages that should appear in warnings. |
Raises | |
self.failureException | If the warning messages given by which do not match the messages in the warning information in warnings, or if they do not appear in the same order. |
Return a new unittest.TestSuite
with a single test method in it.
Parameters | |
cls | A TestCase subclass defining a test method. |
method | The name of the test method from cls. |