b.t.t.TestStaticTuple(tests.TestCase) : class documentation

Part of bzrlib.tests.test__static_tuple View In Hierarchy

No class docstring
Method assertRefcount Assert that the refcount for obj is what we expect.
Method test_create Undocumented
Method test_create_bad_args Undocumented
Method test_concat Undocumented
Method test_concat_with_tuple Undocumented
Method test_concat_with_bad_tuple Undocumented
Method test_concat_with_non_tuple Undocumented
Method test_as_tuple Undocumented
Method test_as_tuples Undocumented
Method test_len Undocumented
Method test_hold_other_static_tuples Undocumented
Method test_getitem Undocumented
Method test_refcount Undocumented
Method test__repr__ Undocumented
Method assertCompareEqual Undocumented
Method test_holds_None Undocumented
Method test_holds_int Undocumented
Method test_holds_long Undocumented
Method test_holds_float Undocumented
Method test_holds_str Undocumented
Method test_holds_unicode Undocumented
Method test_hold_bool Undocumented
Method test_compare_same_obj Undocumented
Method test_compare_equivalent_obj Undocumented
Method test_compare_similar_obj Undocumented
Method assertCompareDifferent Undocumented
Method assertCompareNoRelation Run the comparison operators, make sure they do something.
Method test_compare_vs_none Undocumented
Method test_compare_cross_class Undocumented
Method test_compare_all_different_same_width Undocumented
Method test_compare_some_different Undocumented
Method test_compare_diff_width Undocumented
Method test_compare_different_types Undocumented
Method test_compare_to_tuples Undocumented
Method test_compare_mixed_depths Undocumented
Method test_hash Undocumented
Method test_slice Undocumented
Method test_referents Undocumented
Method test_nested_referents Undocumented
Method test_empty_is_singleton Undocumented
Method test_intern Undocumented
Method test__c_intern_handles_refcount Undocumented
Method test__c_keys_are_not_immortal Undocumented
Method test__c_has_C_API Undocumented
Method test_from_sequence_tuple Undocumented
Method test_from_sequence_str Undocumented
Method test_from_sequence_list Undocumented
Method test_from_sequence_static_tuple Undocumented
Method test_from_sequence_not_sequence Undocumented
Method test_from_sequence_incorrect_args Undocumented
Method test_from_sequence_iterable Undocumented
Method test_from_sequence_generator Undocumented
Method test_pickle Undocumented
Method test_pickle_empty Undocumented
Method test_pickle_nested Undocumented
Method test_static_tuple_thunk Undocumented

Inherited from TestCase:

Method __init__ Undocumented
Method setUp Undocumented
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 assertRefcount(self, count, obj):
Assert that the refcount for obj is what we expect.

Note that this automatically adjusts for the fact that calling assertRefcount actually creates a new pointer, as does calling sys.getrefcount. So pass the expected value before the call.

def test_create(self):
Undocumented
def test_create_bad_args(self):
Undocumented
def test_concat(self):
Undocumented
def test_concat_with_tuple(self):
Undocumented
def test_concat_with_bad_tuple(self):
Undocumented
def test_concat_with_non_tuple(self):
Undocumented
def test_as_tuple(self):
Undocumented
def test_as_tuples(self):
Undocumented
def test_len(self):
Undocumented
def test_hold_other_static_tuples(self):
Undocumented
def test_getitem(self):
Undocumented
def test_refcount(self):
Undocumented
def test__repr__(self):
Undocumented
def assertCompareEqual(self, k1, k2):
Undocumented
def test_holds_None(self):
Undocumented
def test_holds_int(self):
Undocumented
def test_holds_long(self):
Undocumented
def test_holds_float(self):
Undocumented
def test_holds_str(self):
Undocumented
def test_holds_unicode(self):
Undocumented
def test_hold_bool(self):
Undocumented
def test_compare_same_obj(self):
Undocumented
def test_compare_equivalent_obj(self):
Undocumented
def test_compare_similar_obj(self):
Undocumented
def assertCompareDifferent(self, k_small, k_big):
Undocumented
def assertCompareNoRelation(self, k1, k2):
Run the comparison operators, make sure they do something.

However, we don't actually care what comes first or second. This is stuff like cross-class comparisons. We don't want to segfault/raise an exception, but we don't care about the sort order.

def test_compare_vs_none(self):
Undocumented
def test_compare_cross_class(self):
Undocumented
def test_compare_all_different_same_width(self):
Undocumented
def test_compare_some_different(self):
Undocumented
def test_compare_diff_width(self):
Undocumented
def test_compare_different_types(self):
Undocumented
def test_compare_to_tuples(self):
Undocumented
def test_compare_mixed_depths(self):
Undocumented
def test_hash(self):
Undocumented
def test_slice(self):
Undocumented
def test_referents(self):
Undocumented
def test_nested_referents(self):
Undocumented
def test_empty_is_singleton(self):
Undocumented
def test_intern(self):
Undocumented
def test__c_intern_handles_refcount(self):
Undocumented
def test__c_keys_are_not_immortal(self):
Undocumented
def test__c_has_C_API(self):
Undocumented
def test_from_sequence_tuple(self):
Undocumented
def test_from_sequence_str(self):
Undocumented
def test_from_sequence_list(self):
Undocumented
def test_from_sequence_static_tuple(self):
Undocumented
def test_from_sequence_not_sequence(self):
Undocumented
def test_from_sequence_incorrect_args(self):
Undocumented
def test_from_sequence_iterable(self):
Undocumented
def test_from_sequence_generator(self):
Undocumented
def test_pickle(self):
Undocumented
def test_pickle_empty(self):
Undocumented
def test_pickle_nested(self):
Undocumented
def test_static_tuple_thunk(self):
Undocumented
API Documentation for Bazaar, generated by pydoctor at 2019-08-25 00:28:39.