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'}}#
test_502()[source]#

Test that framework is skipping this test due to HTTP 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'#
test_assert_is_empty()[source]#

Test assertIsEmpty method.

test_assert_is_empty_fail()[source]#

Test assertIsEmpty method failing.

test_assert_is_not_empty()[source]#

Test assertIsNotEmpty method.

test_assert_is_not_empty_fail()[source]#

Test assertIsNotEmpty method.

test_assert_length()[source]#

Test assertIsNotEmpty method.

test_assert_length_fail()[source]#

Test assertIsNotEmpty method.

class tests.tests_tests.UtilsTests(*args, **kwargs)[source]#

Bases: DisableSiteMixin, TestCase

Tests for tests.utils.

abstract_class = False#
pattern = 'Hello World'#
test_entered_loop()[source]#

Test utils.entered_loop.

test_fixed_generator()[source]#

Test utils.fixed_generator.