testing.unit.test_backend module

class testing.unit.test_backend.BackendWrapperTest(methodName='runTest')[source]

Bases: UnitTestCase

_classSetupFailed = False
_class_cleanups = []
setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_cleans_up(time_mock)[source]
test_close()[source]
test_default_error_exit()[source]
test_move()[source]
test_move_fallback_false()[source]
test_move_fallback_undefined()[source]
test_prefer_lists()[source]
test_retries(time_mock)[source]
test_translates_code()[source]
test_uses_exception_code()[source]
test_verify()[source]
test_verify_fallback()[source]
test_verify_generic()[source]
test_verify_generic_fail(time_mock)[source]
test_verify_generic_fail_1(time_mock)[source]
test_verify_generic_fail_2(time_mock)[source]

simulate backend which can’t get file size, because of missing functionality

test_verify_testbackend()[source]
test_verify_testbackend_fail()[source]
class testing.unit.test_backend.ParsedUrlTest(methodName='runTest')[source]

Bases: UnitTestCase

Test the ParsedUrl class

_classSetupFailed = False
_class_cleanups = []
test_basic()[source]

Test various url strings

test_errors()[source]

Test various url errors