(self)
| 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]) |