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

Method test_intersection_update

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

Source from the content-addressed store, hash-verified

268 self.assertIn(c, self.s)
269
270 def test_intersection_update(self):
271 retval = self.s.intersection_update(self.items2)
272 self.assertEqual(retval, None)
273 for c in (self.items + self.items2):
274 if c in self.items2 and c in self.items:
275 self.assertIn(c, self.s)
276 else:
277 self.assertNotIn(c, self.s)
278 self.assertRaises(TypeError, self.s.intersection_update, [[]])
279
280 def test_iand(self):
281 self.s &= set(self.items2)

Callers

nothing calls this directly

Calls 5

intersection_updateMethod · 0.80
assertInMethod · 0.80
assertNotInMethod · 0.80
assertEqualMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected