Commit 1923ede9 authored by Andreas Jung's avatar Andreas Jung

test for XXBucket.values() did not detect broken values()

implementation
parent e9f079fa
......@@ -214,12 +214,11 @@ class MappingBase(Base):
def testValuesWorks(self):
for x in range(100):
self.t[x] = x
self.t[x] = x*x
v = self.t.values()
i = 0
for x in v:
assert x == i, (x,i)
i = i + 1
for i in range(100):
assert v[i]==i*i , (i*i,i)
def testKeysWorks(self):
for x in range(100):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment