Commit a8a58b28 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Simulate fake lock to reduce warning logs with tests for MT connections.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@445 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 47be3284
...@@ -1062,6 +1062,7 @@ class testConnection(unittest.TestCase): ...@@ -1062,6 +1062,7 @@ class testConnection(unittest.TestCase):
bc.setUUID(uuid) bc.setUUID(uuid)
self.assertEqual(bc.getUUID(), uuid) self.assertEqual(bc.getUUID(), uuid)
# test next id # test next id
bc._lock = Mock({'_is_owned': True})
cur_id = bc.cur_id cur_id = bc.cur_id
next_id = bc.getNextId() next_id = bc.getNextId()
self.assertEqual(next_id, cur_id) self.assertEqual(next_id, cur_id)
......
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