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

Method test_or

Lib/test/test_weakset.py:89–92  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

87 self.assertEqual(len(u), len(self.items) + len(self.items2))
88
89 def test_or(self):
90 i = self.s.union(self.items2)
91 self.assertEqual(self.s | set(self.items2), i)
92 self.assertEqual(self.s | frozenset(self.items2), i)
93
94 def test_intersection(self):
95 s = WeakSet(self.letters)

Callers

nothing calls this directly

Calls 3

setFunction · 0.85
unionMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected