Commit 17f8426b authored by Vincent Pelletier's avatar Vincent Pelletier

Make __checkDatabase also check object content via ZODB API.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2211 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent ff6459a9
......@@ -90,6 +90,15 @@ class StorageTests(NEOFunctionalTest):
query = 'select count(*) from (select * from obj group by oid) as t'
objects = self.queryCount(db, query)
self.assertEqual(objects, OBJECT_NUMBER + 1)
# Check object content
db, conn = self.neo.getZODBConnection()
root = conn.root()
for i in xrange(OBJECT_NUMBER):
obj = root[i]
self.assertEqual(obj.value, i)
transaction.abort()
conn.close()
db.close()
def __checkReplicationDone(self):
# wait for replication to finish
......
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