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

Method testBadUpdates

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

Source from the content-addressed store, hash-verified

298 self.assertEqual(s1, s2)
299
300 def testBadUpdates(self):
301 s = S([1, 2, 3])
302 self.assertRaises(ValueError, lambda: s.union_update(1))
303 self.assertRaises(ValueError, lambda: s.intersection_update(1))
304 self.assertRaises(ValueError, lambda: s.difference_update(1))
305 self.assertRaises(ValueError, lambda: s.symmetric_difference_update(1))
306
307 def testSelfUpdates(self):
308 expected = S([1, 2, 3])

Callers

nothing calls this directly

Calls 4

difference_updateMethod · 0.80
union_updateMethod · 0.45
intersection_updateMethod · 0.45

Tested by

no test coverage detected