b.t.t.TestErrors(TestCaseWithTransport) : class documentation

Part of bzrlib.tests.test_errors View In Hierarchy

No class docstring
Method test_no_arg_named_message Ensure the __init__ and _fmt in errors do not have "message" arg.
Method test_bad_filename_encoding Undocumented
Method test_corrupt_dirstate Undocumented
Method test_dirstate_corrupt Undocumented
Method test_disabled_method Undocumented
Method test_duplicate_file_id Undocumented
Method test_duplicate_help_prefix Undocumented
Method test_ghost_revisions_have_no_revno Undocumented
Method test_incompatibleAPI Undocumented
Method test_inconsistent_delta Undocumented
Method test_inconsistent_delta_delta Undocumented
Method test_in_process_transport Undocumented
Method test_invalid_http_range Undocumented
Method test_invalid_range Undocumented
Method test_inventory_modified Undocumented
Method test_jail_break Undocumented
Method test_lock_active Undocumented
Method test_lock_corrupt Undocumented
Method test_knit_data_stream_incompatible Undocumented
Method test_knit_data_stream_unknown Undocumented
Method test_knit_header_error Undocumented
Method test_knit_index_unknown_method Undocumented
Method test_medium_not_connected Undocumented
Method test_no_public_branch Undocumented
Method test_no_repo Undocumented
Method test_no_smart_medium Undocumented
Method test_no_help_topic Undocumented
Method test_no_such_id Undocumented
Method test_no_such_revision_in_tree Undocumented
Method test_not_stacked Undocumented
Method test_not_write_locked Undocumented
Method test_lock_failed Undocumented
Method test_too_many_concurrent_requests Undocumented
Method test_unavailable_representation Undocumented
Method test_unknown_hook Undocumented
Method test_unstackable_branch_format Undocumented
Method test_unstackable_location Undocumented
Method test_unstackable_repository_format Undocumented
Method test_up_to_date Undocumented
Method test_corrupt_repository Undocumented
Method test_read_error Undocumented
Method test_bad_index_format_signature Undocumented
Method test_bad_index_data Undocumented
Method test_bad_index_duplicate_key Undocumented
Method test_bad_index_key Undocumented
Method test_bad_index_options Undocumented
Method test_bad_index_value Undocumented
Method test_bzrnewerror_is_deprecated Undocumented
Method test_bzrerror_from_literal_string Undocumented
Method test_reading_completed Undocumented
Method test_writing_completed Undocumented
Method test_writing_not_completed Undocumented
Method test_transport_not_possible Undocumented
Method assertSocketConnectionError Check the formatting of a SocketConnectionError exception
Method test_socket_connection_error Test the formatting of SocketConnectionError
Method test_target_not_branch Test the formatting of TargetNotBranch.
Method test_malformed_bug_identifier Test the formatting of MalformedBugIdentifier.
Method test_unknown_bug_tracker_abbreviation Test the formatting of UnknownBugTrackerAbbreviation.
Method test_unexpected_smart_server_response Undocumented
Method test_unknown_container_format Test the formatting of UnknownContainerFormatError.
Method test_unexpected_end_of_container Test the formatting of UnexpectedEndOfContainerError.
Method test_unknown_record_type Test the formatting of UnknownRecordTypeError.
Method test_invalid_record Test the formatting of InvalidRecordError.
Method test_container_has_excess_data Test the formatting of ContainerHasExcessDataError.
Method test_duplicate_record_name_error Test the formatting of DuplicateRecordNameError.
Method test_check_error Undocumented
Method test_repository_data_stream_error Test the formatting of RepositoryDataStreamError.
Method test_immortal_pending_deletion_message Undocumented
Method test_unable_create_symlink Undocumented
Method test_invalid_url_join Test the formatting of InvalidURLJoin.
Method test_incorrect_url Undocumented
Method test_unable_encode_path Undocumented
Method test_unknown_format Undocumented
Method test_unknown_rules Undocumented
Method test_hook_failed Undocumented
Method test_tip_change_rejected Undocumented
Method test_error_from_smart_server Undocumented
Method test_untranslateable_error_from_smart_server Undocumented
Method test_smart_message_handler_error Undocumented
Method test_must_have_working_tree Undocumented
Method test_no_such_view Undocumented
Method test_views_not_supported Undocumented
Method test_file_outside_view Undocumented
Method test_invalid_shelf_id Undocumented
Method test_unresumable_write_group Undocumented
Method test_unsuspendable_write_group Undocumented
Method test_not_branch_no_args Undocumented
Method test_not_branch_bzrdir_with_repo Undocumented
Method test_not_branch_bzrdir_without_repo Undocumented
Method test_not_branch_bzrdir_with_recursive_not_branch_error Undocumented
Method test_not_branch_laziness Undocumented
Method test_invalid_pattern Undocumented
Method test_recursive_bind Undocumented

Inherited from TestCaseWithTransport:

Method get_vfs_only_server See TestCaseWithMemoryTransport.
Method make_branch_and_tree Create a branch on the transport and a tree locally.
Method assertIsDirectory Assert that relpath within transport is a directory.
Method assertTreesEqual Check that left and right have the same content and properties.
Method setUp Undocumented
Method disable_missing_extensions_warning Some tests expect a precise stderr content.

Inherited from TestCaseInTempDir (via TestCaseWithTransport):

Method check_file_contents Undocumented
Method makeAndChdirToTestDir See TestCaseWithMemoryTransport.makeAndChdirToTestDir().
Method deleteTestDir Undocumented
Method build_tree Build a test tree according to a pattern.
Method assertInWorkingTree Assert whether path or paths are in the WorkingTree
Method assertNotInWorkingTree Assert whether path or paths are not in the WorkingTree
Method _getTestDirPrefix Undocumented

Inherited from TestCaseWithMemoryTransport (via TestCaseWithTransport, TestCaseInTempDir):

Method __init__ Undocumented
Method get_transport Return a writeable transport.
Method get_readonly_transport Return a readonly transport for the test scratch space
Method create_transport_readonly_server Create a transport server from class defined at init.
Method get_readonly_server Get the server instance for the readonly transport
Method get_readonly_url Get a URL for the readonly transport.
Method get_server Get the read/write server instance.
Method get_url Get a URL (or maybe a path) for the readwrite transport.
Method get_vfs_only_url Get a URL (or maybe a path for the plain old vfs transport.
Method make_branch Create a branch on the transport at relpath.
Method get_default_format Undocumented
Method resolve_format Resolve an object to a ControlDir format object.
Method make_bzrdir Undocumented
Method make_repository Create a repository on our default transport at relpath.
Method make_smart_server Undocumented
Method make_branch_and_memory_tree Create a branch on the default transport and a MemoryTree for it.
Method make_branch_builder Undocumented
Method overrideEnvironmentForTesting Undocumented
Method setup_smart_server_with_call_log Sets up a smart server as the transport server with a call log.
Method reset_smart_call_log Undocumented
Method _adjust_url Get a URL (or maybe a path) for the readwrite transport.
Method _create_safety_net Make a fake bzr directory.
Method _check_safety_net Check that the safety .bzr directory have not been touched.
Method _make_test_root Undocumented

Inherited from TestCase (via TestCaseWithTransport, TestCaseInTempDir, TestCaseWithMemoryTransport):

Method debug Undocumented
Method discardDetail Extend the addDetail, getDetails api so we can remove a detail.
Method install_counter_hook Install a counting hook.
Method disable_directory_isolation Turn off directory isolation checks.
Method enable_directory_isolation Enable directory isolation checks.
Method permit_dir Permit a directory to be used by this test. See permit_url.
Method permit_url Declare that url is an ok url to use in this test.
Method permit_source_tree_branch_repo Permit the source tree bzr is running from to be opened.
Method record_directory_isolation Gather accessed directories to permit later access.
Method start_server Start transport_server for this test.
Method assertEqual Undocumented
Method assertEqualDiff Assert two texts are equal, if not raise an exception.
Method assertEqualMode Undocumented
Method assertEqualStat assert that expected and actual are the same stat result.
Method assertLength Assert that obj_with_len is of length length.
Method assertLogsError Assert that func(*args, **kwargs) quietly logs a specific error.
Method assertPositive Assert that val is greater than 0.
Method assertNegative Assert that val is less than 0.
Method assertStartsWith Undocumented
Method assertEndsWith Asserts that s ends with suffix.
Method assertContainsRe Assert that a contains something matching a regular expression.
Method assertNotContainsRe Assert that a does not match a regular expression
Method assertContainsString Undocumented
Method assertNotContainsString Undocumented
Method assertSubset Assert that every entry in sublist is present in superlist.
Method assertListRaises Fail unless excClass is raised when the iterator from func is used.
Method assertRaises Assert that a callable raises a particular exception.
Method assertIs Undocumented
Method assertIsNot Undocumented
Method assertTransportMode Fail if a path does not have mode "mode".
Method assertIsSameRealPath Fail if path1 and path2 points to different files
Method assertIsInstance Fail if obj is not an instance of kls
Method assertFileEqual Fail if path does not contain 'content'.
Method assertDocstring Fail if obj does not have expected_docstring
Method failUnlessExists Undocumented
Method assertPathExists Fail unless path or paths, which may be abs or relative, exist.
Method failIfExists Undocumented
Method assertPathDoesNotExist Fail if path or paths, which may be abs or relative, exist.
Method applyDeprecated Call a deprecated callable without warning the user.
Method callCatchWarnings Call a callable that raises python warnings.
Method callDeprecated Assert that a callable is deprecated in a particular way.
Method thisFailsStrictLockCheck It is known that this test would fail with -Dstrict_locks.
Method overrideAttr Overrides an object attribute restoring it after the test.
Method overrideEnv Set an environment variable, and reset it after the test.
Method recordCalls Monkeypatch in a wrapper that will record calls.
Method knownFailure Declare that this test fails for a known reason
Method time Run callable and accrue the time it takes to the benchmark time.
Method log Undocumented
Method get_log Get a unicode string containing the log from bzrlib.trace.
Method requireFeature This test requires a specific feature is available.
Method run_bzr Invoke bzr, as if it were run from the command line.
Method run_bzr_error Run bzr, and check that stderr contains the supplied regexes
Method run_bzr_subprocess Run bzr in a subprocess for testing.
Method start_bzr_subprocess Start bzr in a subprocess for testing.
Method get_source_path Return the path of the directory containing bzrlib.
Method get_bzr_path Return the path of the 'bzr' executable for this test suite.
Method finish_bzr_subprocess Finish the execution of process.
Method check_tree_shape Compare a tree to a list of expected names.
Method apply_redirected Call callable with redirected std io pipes.
Method reduceLockdirTimeout Reduce the default lock timeout for the duration of the test, so that
Method make_utf8_encoded_stringio Return a StringIOWrapper instance, that will encode Unicode
Method disable_verb Disable a smart server verb for one test.
Method _install_config_stats_hooks Install config hooks to count hook calls.
Method _clear_debug_flags Prevent externally set debug flags affecting tests.
Method _clear_hooks Undocumented
Method _silenceUI Turn off UI for duration of test
Method _check_locks Check that all lock take/release actions have been paired.
Method _track_locks Track lock activity during tests.
Method _lock_acquired Undocumented
Method _lock_released Undocumented
Method _lock_broken Undocumented
Method _preopen_isolate_transport Check that all transport openings are done in the test work area.
Method _preopen_isolate_url Undocumented
Method _track_transports Install checks for transport usage.
Method _ndiff_strings Return ndiff between two strings containing lines.
Method _capture_deprecation_warnings A helper for callDeprecated and applyDeprecated.
Method _startLogFile Setup a in-memory target for bzr and testcase log messages
Method _finishLogFile Flush and dereference the in-memory log for this testcase
Method _cleanEnvironment Undocumented
Method _restoreHooks Undocumented
Method _suppress_log Remove the log info from details.
Method _do_skip Undocumented
Static Method _do_known_failure Undocumented
Static Method _do_not_applicable Undocumented
Static Method _report_skip Override the default _report_skip.
Static Method _report_expected_failure Strip the log.
Static Method _do_unsupported_or_skip Undocumented
Method _run_bzr_autosplit Run bazaar command line, splitting up a string command line.
Method _run_bzr_core Undocumented
Method _add_subprocess_log Undocumented
Method _subprocess_log_cleanup Undocumented
Method _popen Place a call to Popen.
def test_no_arg_named_message(self):
Ensure the __init__ and _fmt in errors do not have "message" arg.

This test fails if __init__ or _fmt in errors has an argument named "message" as this can cause errors in some Python versions. Python 2.5 uses a slot for StandardError.message. See bug #603461

def test_bad_filename_encoding(self):
Undocumented
def test_corrupt_dirstate(self):
Undocumented
def test_dirstate_corrupt(self):
Undocumented
def test_disabled_method(self):
Undocumented
def test_duplicate_file_id(self):
Undocumented
def test_duplicate_help_prefix(self):
Undocumented
def test_ghost_revisions_have_no_revno(self):
Undocumented
def test_incompatibleAPI(self):
Undocumented
def test_inconsistent_delta(self):
Undocumented
def test_inconsistent_delta_delta(self):
Undocumented
def test_in_process_transport(self):
Undocumented
def test_invalid_http_range(self):
Undocumented
def test_invalid_range(self):
Undocumented
def test_inventory_modified(self):
Undocumented
def test_jail_break(self):
Undocumented
def test_lock_active(self):
Undocumented
def test_lock_corrupt(self):
Undocumented
def test_knit_data_stream_incompatible(self):
Undocumented
def test_knit_data_stream_unknown(self):
Undocumented
def test_knit_header_error(self):
Undocumented
def test_knit_index_unknown_method(self):
Undocumented
def test_medium_not_connected(self):
Undocumented
def test_no_public_branch(self):
Undocumented
def test_no_repo(self):
Undocumented
def test_no_smart_medium(self):
Undocumented
def test_no_help_topic(self):
Undocumented
def test_no_such_id(self):
Undocumented
def test_no_such_revision_in_tree(self):
Undocumented
def test_not_stacked(self):
Undocumented
def test_not_write_locked(self):
Undocumented
def test_lock_failed(self):
Undocumented
def test_too_many_concurrent_requests(self):
Undocumented
def test_unavailable_representation(self):
Undocumented
def test_unknown_hook(self):
Undocumented
def test_unstackable_branch_format(self):
Undocumented
def test_unstackable_location(self):
Undocumented
def test_unstackable_repository_format(self):
Undocumented
def test_up_to_date(self):
Undocumented
def test_corrupt_repository(self):
Undocumented
def test_read_error(self):
Undocumented
def test_bad_index_format_signature(self):
Undocumented
def test_bad_index_data(self):
Undocumented
def test_bad_index_duplicate_key(self):
Undocumented
def test_bad_index_key(self):
Undocumented
def test_bad_index_options(self):
Undocumented
def test_bad_index_value(self):
Undocumented
def test_bzrnewerror_is_deprecated(self):
Undocumented
def test_bzrerror_from_literal_string(self):
Undocumented
def test_reading_completed(self):
Undocumented
def test_writing_completed(self):
Undocumented
def test_writing_not_completed(self):
Undocumented
def test_transport_not_possible(self):
Undocumented
def assertSocketConnectionError(self, expected, *args, **kwargs):
Check the formatting of a SocketConnectionError exception
def test_socket_connection_error(self):
Test the formatting of SocketConnectionError
def test_target_not_branch(self):
Test the formatting of TargetNotBranch.
def test_malformed_bug_identifier(self):
Test the formatting of MalformedBugIdentifier.
def test_unknown_bug_tracker_abbreviation(self):
Test the formatting of UnknownBugTrackerAbbreviation.
def test_unexpected_smart_server_response(self):
Undocumented
def test_unknown_container_format(self):
Test the formatting of UnknownContainerFormatError.
def test_unexpected_end_of_container(self):
Test the formatting of UnexpectedEndOfContainerError.
def test_unknown_record_type(self):
Test the formatting of UnknownRecordTypeError.
def test_invalid_record(self):
Test the formatting of InvalidRecordError.
def test_container_has_excess_data(self):
Test the formatting of ContainerHasExcessDataError.
def test_duplicate_record_name_error(self):
Test the formatting of DuplicateRecordNameError.
def test_check_error(self):
Undocumented
def test_repository_data_stream_error(self):
Test the formatting of RepositoryDataStreamError.
def test_immortal_pending_deletion_message(self):
Undocumented
def test_unable_create_symlink(self):
Undocumented
def test_invalid_url_join(self):
Test the formatting of InvalidURLJoin.
def test_incorrect_url(self):
Undocumented
def test_unable_encode_path(self):
Undocumented
def test_unknown_format(self):
Undocumented
def test_unknown_rules(self):
Undocumented
def test_hook_failed(self):
Undocumented
def test_tip_change_rejected(self):
Undocumented
def test_error_from_smart_server(self):
Undocumented
def test_untranslateable_error_from_smart_server(self):
Undocumented
def test_smart_message_handler_error(self):
Undocumented
def test_must_have_working_tree(self):
Undocumented
def test_no_such_view(self):
Undocumented
def test_views_not_supported(self):
Undocumented
def test_file_outside_view(self):
Undocumented
def test_invalid_shelf_id(self):
Undocumented
def test_unresumable_write_group(self):
Undocumented
def test_unsuspendable_write_group(self):
Undocumented
def test_not_branch_no_args(self):
Undocumented
def test_not_branch_bzrdir_with_repo(self):
Undocumented
def test_not_branch_bzrdir_without_repo(self):
Undocumented
def test_not_branch_bzrdir_with_recursive_not_branch_error(self):
Undocumented
def test_not_branch_laziness(self):
Undocumented
def test_invalid_pattern(self):
Undocumented
def test_recursive_bind(self):
Undocumented
API Documentation for Bazaar, generated by pydoctor at 2019-10-20 00:34:54.