tests.tests_tests module#
Tests for the tests package.
- class tests.tests_tests.HttpServerProblemTestCase(*args, **kwargs)[source]#
Bases:
CheckHostnameMixin
,TestCase
Test HTTP status 502 causes this test class to be skipped.
- abstract_class = False#
- net = True#
- site = True#
- sites = {'502': {'hostname': 'http://httpbin.org/status/502'}}#
- class tests.tests_tests.TestLengthAssertion(*args, **kwargs)[source]#
Bases:
DisableSiteMixin
,TestCase
Test length assertion methods.
@unittest.expectedFailure
is used to test the failure of a test; this is intentional. If the decorated test passes unexpectedly the test will fail.- abstract_class = False#
- seq1 = ('foo', 'bar', 'baz')#
- seq2 = 'foo'#