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): ...@@ -214,12 +214,11 @@ class MappingBase(Base):
def testValuesWorks(self): def testValuesWorks(self):
for x in range(100): for x in range(100):
self.t[x] = x self.t[x] = x*x
v = self.t.values() v = self.t.values()
i = 0 for i in range(100):
for x in v: assert v[i]==i*i , (i*i,i)
assert x == i, (x,i)
i = i + 1
def testKeysWorks(self): def testKeysWorks(self):
for x in range(100): 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