--- a/server/test/unittest_hook.py Fri Jan 24 13:08:53 2014 +0100
+++ b/server/test/unittest_hook.py Tue Jan 21 18:30:16 2014 +0100
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# copyright 2003-2014 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This file is part of CubicWeb.
@@ -61,15 +61,10 @@
@clean_session_ops
def test_global_operation_order(self):
session = self.session
- op1 = integrity._DelayedDeleteOp(session)
- op2 = syncschema.RDefDelOp(session)
- # equivalent operation generated by op2 but replace it here by op3 so we
- # can check the result...
+ op1 = syncschema.RDefDelOp(session)
+ op2 = integrity._CheckORelationOp(session)
op3 = syncschema.MemSchemaNotifyChanges(session)
- op4 = integrity._DelayedDeleteOp(session)
- op5 = integrity._CheckORelationOp(session)
- self.assertEqual(session.pending_operations, [op1, op2, op4, op5, op3])
-
+ self.assertEqual([op1, op2, op3], session.pending_operations)
class HookCalled(Exception): pass