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

Method test_update

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

Source from the content-addressed store, hash-verified

251 self.assertRaises(KeyError, self.s.pop)
252
253 def test_update(self):
254 retval = self.s.update(self.items2)
255 self.assertEqual(retval, None)
256 for c in (self.items + self.items2):
257 self.assertIn(c, self.s)
258 self.assertRaises(TypeError, self.s.update, [[]])
259
260 def test_update_set(self):
261 self.s.update(set(self.items2))

Callers

nothing calls this directly

Calls 4

assertInMethod · 0.80
updateMethod · 0.45
assertEqualMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected