MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / assertItemsEqual

Method assertItemsEqual

Lib/unittest/case.py:865–903  ·  view source on GitHub ↗

An unordered sequence specific comparison. It asserts that actual_seq and expected_seq have the same element counts. Equivalent to:: self.assertEqual(Counter(iter(actual_seq)), Counter(iter(expected_seq))) Asserts that each element h

(self, expected_seq, actual_seq, msg=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

testAssertItemsEqualMethod · 0.80

Calls 7

_truncateMessageMethod · 0.95
_formatMessageMethod · 0.95
failMethod · 0.95
_count_diff_all_purposeFunction · 0.85
_count_diff_hashableFunction · 0.85
listClass · 0.50
joinMethod · 0.45

Tested by 1

testAssertItemsEqualMethod · 0.64