kiddouk / redisco

A Python Library for Simple Models and Containers Persisted in Redis
MIT License
438 stars 78 forks source link

Equality test in Set containers is erroneous #5

Closed kiddouk closed 12 years ago

kiddouk commented 12 years ago

Considering the following case :

from redisco.containers import Set

foo = Set('s1')
foo.add('1')
foo.add('2')

bar = Set('s2')
bar.add('1')
bar.add('2')

# Expected False
print bar != foo
True