Commit 8aaff20f authored by Vincent Pelletier's avatar Vincent Pelletier

Stop testing python dict class...

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2215 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent bfd70ac2
...@@ -125,7 +125,6 @@ class MasterVerificationTests(NeoTestBase): ...@@ -125,7 +125,6 @@ class MasterVerificationTests(NeoTestBase):
conn = self.getFakeConnection(uuid, self.storage_address) conn = self.getFakeConnection(uuid, self.storage_address)
self.assertEquals(len(self.verification._uuid_dict), 0) self.assertEquals(len(self.verification._uuid_dict), 0)
self.verification._uuid_dict[uuid] = True self.verification._uuid_dict[uuid] = True
self.assertTrue(self.verification._uuid_dict.has_key(uuid))
self.assertEquals(len(self.verification._tid_set), 0) self.assertEquals(len(self.verification._tid_set), 0)
new_tid = self.getNextTID() new_tid = self.getNextTID()
verification.answerUnfinishedTransactions(conn, [new_tid]) verification.answerUnfinishedTransactions(conn, [new_tid])
...@@ -133,7 +132,6 @@ class MasterVerificationTests(NeoTestBase): ...@@ -133,7 +132,6 @@ class MasterVerificationTests(NeoTestBase):
# update dict # update dict
conn = self.getFakeConnection(uuid, self.storage_address) conn = self.getFakeConnection(uuid, self.storage_address)
self.verification._uuid_dict[uuid] = False self.verification._uuid_dict[uuid] = False
self.assertTrue(self.verification._uuid_dict.has_key(uuid))
self.assertEquals(len(self.verification._tid_set), 0) self.assertEquals(len(self.verification._tid_set), 0)
new_tid = self.getNextTID(new_tid) new_tid = self.getNextTID(new_tid)
verification.answerUnfinishedTransactions(conn, [new_tid,]) verification.answerUnfinishedTransactions(conn, [new_tid,])
...@@ -149,7 +147,6 @@ class MasterVerificationTests(NeoTestBase): ...@@ -149,7 +147,6 @@ class MasterVerificationTests(NeoTestBase):
self.assertEquals(len(self.verification._uuid_dict), 0) self.assertEquals(len(self.verification._uuid_dict), 0)
self.verification._uuid_dict[uuid] = False self.verification._uuid_dict[uuid] = False
self.verification._oid_set = None self.verification._oid_set = None
self.assertTrue(self.verification._uuid_dict.has_key(uuid))
new_tid = self.getNextTID() new_tid = self.getNextTID()
new_oid = self.getOID(1) new_oid = self.getOID(1)
verification.answerTransactionInformation(conn, new_tid, verification.answerTransactionInformation(conn, new_tid,
...@@ -160,7 +157,6 @@ class MasterVerificationTests(NeoTestBase): ...@@ -160,7 +157,6 @@ class MasterVerificationTests(NeoTestBase):
self.assertEquals(len(self.verification._uuid_dict), 1) self.assertEquals(len(self.verification._uuid_dict), 1)
self.verification._uuid_dict[uuid] = True self.verification._uuid_dict[uuid] = True
self.verification._oid_set = set() self.verification._oid_set = set()
self.assertTrue(self.verification._uuid_dict.has_key(uuid))
self.assertEquals(len(self.verification._oid_set), 0) self.assertEquals(len(self.verification._oid_set), 0)
verification.answerTransactionInformation(conn, new_tid, verification.answerTransactionInformation(conn, new_tid,
"user", "desc", "ext", False, [new_oid,]) "user", "desc", "ext", False, [new_oid,])
...@@ -169,7 +165,6 @@ class MasterVerificationTests(NeoTestBase): ...@@ -169,7 +165,6 @@ class MasterVerificationTests(NeoTestBase):
conn = self.getFakeConnection(uuid, self.storage_address) conn = self.getFakeConnection(uuid, self.storage_address)
self.assertEquals(len(self.verification._uuid_dict), 1) self.assertEquals(len(self.verification._uuid_dict), 1)
self.verification._uuid_dict[uuid] = False self.verification._uuid_dict[uuid] = False
self.assertTrue(self.verification._uuid_dict.has_key(uuid))
self.assertEquals(len(self.verification._oid_set), 0) self.assertEquals(len(self.verification._oid_set), 0)
verification.answerTransactionInformation(conn, new_tid, verification.answerTransactionInformation(conn, new_tid,
"user", "desc", "ext", False, [new_oid,]) "user", "desc", "ext", False, [new_oid,])
...@@ -179,7 +174,6 @@ class MasterVerificationTests(NeoTestBase): ...@@ -179,7 +174,6 @@ class MasterVerificationTests(NeoTestBase):
conn = self.getFakeConnection(uuid, self.storage_address) conn = self.getFakeConnection(uuid, self.storage_address)
self.assertEquals(len(self.verification._uuid_dict), 1) self.assertEquals(len(self.verification._uuid_dict), 1)
self.verification._uuid_dict[uuid] = False self.verification._uuid_dict[uuid] = False
self.assertTrue(self.verification._uuid_dict.has_key(uuid))
self.assertEquals(len(self.verification._oid_set), 1) self.assertEquals(len(self.verification._oid_set), 1)
new_oid = self.getOID(2) new_oid = self.getOID(2)
verification.answerTransactionInformation(conn, new_tid, verification.answerTransactionInformation(conn, new_tid,
...@@ -194,7 +188,6 @@ class MasterVerificationTests(NeoTestBase): ...@@ -194,7 +188,6 @@ class MasterVerificationTests(NeoTestBase):
self.assertEquals(len(self.verification._uuid_dict), 0) self.assertEquals(len(self.verification._uuid_dict), 0)
self.verification._uuid_dict[uuid] = True self.verification._uuid_dict[uuid] = True
self.verification._oid_set = [] self.verification._oid_set = []
self.assertTrue(self.verification._uuid_dict.has_key(uuid))
verification.tidNotFound(conn, "msg") verification.tidNotFound(conn, "msg")
self.assertNotEqual(self.verification._oid_set, None) self.assertNotEqual(self.verification._oid_set, None)
# do work as asking_uuid_dict is False # do work as asking_uuid_dict is False
...@@ -202,7 +195,6 @@ class MasterVerificationTests(NeoTestBase): ...@@ -202,7 +195,6 @@ class MasterVerificationTests(NeoTestBase):
self.assertEquals(len(self.verification._uuid_dict), 1) self.assertEquals(len(self.verification._uuid_dict), 1)
self.verification._uuid_dict[uuid] = False self.verification._uuid_dict[uuid] = False
self.verification._oid_set = [] self.verification._oid_set = []
self.assertTrue(self.verification._uuid_dict.has_key(uuid))
verification.tidNotFound(conn, "msg") verification.tidNotFound(conn, "msg")
self.assertEqual(self.verification._oid_set, None) self.assertEqual(self.verification._oid_set, None)
...@@ -215,13 +207,11 @@ class MasterVerificationTests(NeoTestBase): ...@@ -215,13 +207,11 @@ class MasterVerificationTests(NeoTestBase):
conn = self.getFakeConnection(uuid, self.storage_address) conn = self.getFakeConnection(uuid, self.storage_address)
self.assertEquals(len(self.verification._uuid_dict), 0) self.assertEquals(len(self.verification._uuid_dict), 0)
self.verification._uuid_dict[uuid] = True self.verification._uuid_dict[uuid] = True
self.assertTrue(self.verification._uuid_dict.has_key(uuid))
verification.answerObjectPresent(conn, new_oid, new_tid) verification.answerObjectPresent(conn, new_oid, new_tid)
# do work # do work
conn = self.getFakeConnection(uuid, self.storage_address) conn = self.getFakeConnection(uuid, self.storage_address)
self.assertEquals(len(self.verification._uuid_dict), 1) self.assertEquals(len(self.verification._uuid_dict), 1)
self.verification._uuid_dict[uuid] = False self.verification._uuid_dict[uuid] = False
self.assertFalse(self.verification._uuid_dict[uuid])
verification.answerObjectPresent(conn, new_oid, new_tid) verification.answerObjectPresent(conn, new_oid, new_tid)
self.assertTrue(self.verification._uuid_dict[uuid]) self.assertTrue(self.verification._uuid_dict[uuid])
...@@ -240,7 +230,6 @@ class MasterVerificationTests(NeoTestBase): ...@@ -240,7 +230,6 @@ class MasterVerificationTests(NeoTestBase):
conn = self.getFakeConnection(uuid, self.storage_address) conn = self.getFakeConnection(uuid, self.storage_address)
self.assertEquals(len(self.verification._uuid_dict), 1) self.assertEquals(len(self.verification._uuid_dict), 1)
self.verification._uuid_dict[uuid] = False self.verification._uuid_dict[uuid] = False
self.assertFalse(self.verification._uuid_dict[uuid ])
self.assertTrue(self.app.object_present) self.assertTrue(self.app.object_present)
verification.oidNotFound(conn, "msg") verification.oidNotFound(conn, "msg")
self.assertFalse(self.app.object_present) self.assertFalse(self.app.object_present)
......
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