MCPcopy Create free account
hub / github.com/rthalley/dnspython / testRemoveNonexistent

Method testRemoveNonexistent

tests/test_set.py:277–282  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

275 self.assertEqual(list(s1), [3])
276
277 def testRemoveNonexistent(self):
278 s1 = S([1, 2, 3])
279 s2 = S([1, 2, 3])
280 with self.assertRaises(ValueError):
281 s1.remove(4)
282 self.assertEqual(s1, s2)
283
284 def testDiscardNonexistent(self):
285 s1 = S([1, 2, 3])

Callers

nothing calls this directly

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected