testing.unit.test_backend module

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

Bases: UnitTestCase

setUp()[source]

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

test_cleans_up(exit_mock, time_mock)[source]
test_close()[source]
test_default_error_exit(exit_mock)[source]
test_move()[source]
test_move_fallback_false()[source]
test_move_fallback_undefined()[source]
test_prefer_lists()[source]
test_retries(exit_mock, time_mock)[source]
test_translates_code(exit_mock)[source]
test_uses_exception_code(exit_mock)[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

test_basic()[source]

Test various url strings

test_errors()[source]

Test various url errors