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

Method test_and

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

Source from the content-addressed store, hash-verified

111 self.assertTrue(not self.s.isdisjoint(WeakSet(self.letters)))
112
113 def test_and(self):
114 i = self.s.intersection(self.items2)
115 self.assertEqual(self.s & set(self.items2), i)
116 self.assertEqual(self.s & frozenset(self.items2), i)
117
118 def test_difference(self):
119 i = self.s.difference(self.items2)

Callers

nothing calls this directly

Calls 3

setFunction · 0.85
intersectionMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected