MCPcopy Index your code
hub / github.com/gitless-vcs/gitless / assertItemsEqual

Method assertItemsEqual

gitless/tests/utils.py:46–55  ·  view source on GitHub ↗
(self, actual, expected, msg=None)

Source from the content-addressed store, hash-verified

44
45 # Python 2/3 compatibility
46 def assertItemsEqual(self, actual, expected, msg=None):
47 try:
48 return super(TestBase, self).assertItemsEqual(actual, expected, msg=msg)
49 except AttributeError:
50 try:
51 # Checks that actual and expected have the same elements in the same
52 # number, regardless of their order
53 return super(TestBase, self).assertCountEqual(actual, expected, msg=msg)
54 except AttributeError:
55 return self.assertEqual(sorted(actual), sorted(expected), msg=msg)
56
57 def assertRaisesRegexp(self, exc, r, fun, *args, **kwargs):
58 try:

Callers 3

test_list_allMethod · 0.80
test_sync_changesMethod · 0.80
__assert_historyMethod · 0.80

Calls

no outgoing calls

Tested by 3

test_list_allMethod · 0.64
test_sync_changesMethod · 0.64
__assert_historyMethod · 0.64