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

Method testSelfUpdates

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

Source from the content-addressed store, hash-verified

305 self.assertRaises(ValueError, lambda: s.symmetric_difference_update(1))
306
307 def testSelfUpdates(self):
308 expected = S([1, 2, 3])
309 s = S([1, 2, 3])
310 s.union_update(s)
311 self.assertEqual(s, expected)
312 s.intersection_update(s)
313 self.assertEqual(s, expected)
314 s.difference_update(s)
315 self.assertTrue(len(s) == 0)
316
317 def testBadSubsetSuperset(self):
318 s = S([1, 2, 3])

Callers

nothing calls this directly

Calls 3

difference_updateMethod · 0.80
union_updateMethod · 0.45
intersection_updateMethod · 0.45

Tested by

no test coverage detected