def test_add_discard(self): x = ResultSet([]) x.add(AsyncResult('1')) self.assertIn(AsyncResult('1'), x.results) x.discard(AsyncResult('1')) x.discard(AsyncResult('1')) x.discard('1') self.assertNotIn(AsyncResult('1'), x.results) x.update([AsyncResult('2')])
def test_add_discard(self): x = ResultSet([]) x.add(AsyncResult("1")) self.assertIn(AsyncResult("1"), x.results) x.discard(AsyncResult("1")) x.discard(AsyncResult("1")) x.discard("1") self.assertNotIn(AsyncResult("1"), x.results) x.update([AsyncResult("2")])