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

Method assertSameSet

Lib/test/test_collections.py:1619–1621  ·  view source on GitHub ↗
(self, s1, s2)

Source from the content-addressed store, hash-verified

1617 self.assertEqual(seq.count(obj), 1)
1618
1619 def assertSameSet(self, s1, s2):
1620 # coerce both to a real set then check equality
1621 self.assertSetEqual(set(s1), set(s2))
1622
1623 def test_Set_from_iterable(self):
1624 """Verify _from_iterable overridden to an instance method works."""

Calls 2

setFunction · 0.85
assertSetEqualMethod · 0.80

Tested by

no test coverage detected