[Neo-report] r2368 vincent - /trunk/neo/tests/storage/testReplicationHandler.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Oct 29 20:33:54 CEST 2010


Author: vincent
Date: Fri Oct 29 20:33:52 2010
New Revision: 2368

Log:
Fix tests for r2364.

Modified:
    trunk/neo/tests/storage/testReplicationHandler.py

Modified: trunk/neo/tests/storage/testReplicationHandler.py
==============================================================================
--- trunk/neo/tests/storage/testReplicationHandler.py [iso-8859-1] (original)
+++ trunk/neo/tests/storage/testReplicationHandler.py [iso-8859-1] Fri Oct 29 20:33:52 2010
@@ -86,12 +86,12 @@ class StorageReplicationHandlerTests(Neo
             'checkTIDRange': None,
             'getTIDsFrom': None,
             'getObjectHistoryFrom': None,
+            'getCurrentRID': rid,
+            'getCurrentCriticalTID': critical_tid,
         })
-        replicator.current_partition = Mock({
-            'getRID': rid,
-            'getCriticalTID': critical_tid,
-        })
-        replicator.current_connection = conn
+        def isCurrentConnection(other_conn):
+            return other_conn is conn
+        replicator.isCurrentConnection = isCurrentConnection
         real_replicator = replicator
         class FakeApp(object):
             replicator = real_replicator





More information about the Neo-report mailing list