Commit 5e23fe69 authored by Jim Fulton's avatar Jim Fulton

Changes comparison to use list(t.items()), since we don't do

comparison yet.

Fixed typo in length test.
parent 0a2f7877
...@@ -134,7 +134,8 @@ class Base: ...@@ -134,7 +134,8 @@ class Base:
try: try:
root = self._getRoot() root = self._getRoot()
assert root['t'] == t #XXX BTree stuff doesn't implement comparison
assert list(root['t'].items()) == list(t.items())
finally: finally:
self._closeDB(root) self._closeDB(root)
self._delDB() self._delDB()
...@@ -156,7 +157,7 @@ class Base: ...@@ -156,7 +157,7 @@ class Base:
root = self._getRoot() root = self._getRoot()
root['t']._p_changed = None root['t']._p_changed = None
get_transaction().commit() get_transaction().commit()
assert root['t'] == t assert list(root['t'].items()) == list(t.items())
finally: finally:
self._closeDB(root) self._closeDB(root)
self._delDB() self._delDB()
...@@ -346,7 +347,7 @@ class SetTests(Base): ...@@ -346,7 +347,7 @@ class SetTests(Base):
t = self.t t = self.t
r = xrange(10000) r = xrange(10000)
for x in r: t.insert(x) for x in r: t.insert(x)
assert len(t) == 1000, len(t) assert len(t) == 10000, len(t)
class BucketTests(MappingBase): class BucketTests(MappingBase):
""" Tests common to all buckets """ """ Tests common to all buckets """
......
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