def test_discard(self): basket = RedisSet( {'apple', 'orange', 'apple', 'pear', 'orange', 'banana', 'tomato'}) basket.discard('tomato') assert basket == { 'apple', 'orange', 'apple', 'pear', 'orange', 'banana' }
def test_discard(self): basket = RedisSet({ 'apple', 'orange', 'apple', 'pear', 'orange', 'banana', 'tomato', }) basket.discard('tomato') assert basket == { 'apple', 'orange', 'apple', 'pear', 'orange', 'banana', }
def test_discard(self): fruits = { 'apple', 'orange', 'apple', 'pear', 'orange', 'banana', 'tomato' } basket = RedisSet(fruits, redis=self.redis) basket.discard('tomato') assert basket == { 'apple', 'orange', 'apple', 'pear', 'orange', 'banana', }