MCPcopy Index your code
hub / github.com/python/cpython / assertTupleEqual

Method assertTupleEqual

Lib/unittest/case.py:1133–1142  ·  view source on GitHub ↗

A tuple-specific equality assertion. Args: tuple1: The first tuple to compare. tuple2: The second tuple to compare. msg: Optional message to use on failure instead of a list of differences.

(self, tuple1, tuple2, msg=None)

Source from the content-addressed store, hash-verified

1131 self.assertSequenceEqual(list1, list2, msg, seq_type=list)
1132
1133 def assertTupleEqual(self, tuple1, tuple2, msg=None):
1134 """A tuple-specific equality assertion.
1135
1136 Args:
1137 tuple1: The first tuple to compare.
1138 tuple2: The second tuple to compare.
1139 msg: Optional message to use on failure instead of a list of
1140 differences.
1141 """
1142 self.assertSequenceEqual(tuple1, tuple2, msg, seq_type=tuple)
1143
1144 def assertSetEqual(self, set1, set2, msg=None):
1145 """A set-specific equality assertion.

Callers 15

_test_dictMethod · 0.95
runMethod · 0.80
test_heappushpop_maxMethod · 0.80
testEqualityMethod · 0.80
test_insertMethod · 0.80

Calls 1

assertSequenceEqualMethod · 0.95

Tested by 15

_test_dictMethod · 0.76
runMethod · 0.64
test_heappushpop_maxMethod · 0.64
testEqualityMethod · 0.64
test_insertMethod · 0.64