[test] call super class teardown after perms restoration
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 03 Mar 2010 19:02:36 +0100
changeset 4775 3a37f0ce7527
parent 4774 89a7555020ba
child 4776 3bf51379baee
[test] call super class teardown after perms restoration
server/test/unittest_msplanner.py
--- a/server/test/unittest_msplanner.py	Wed Mar 03 18:57:41 2010 +0100
+++ b/server/test/unittest_msplanner.py	Wed Mar 03 19:02:36 2010 +0100
@@ -92,10 +92,10 @@
         self.add_source(FakeCardSource, 'cards')
 
     def tearDown(self):
-        super(BaseMSPlannerTC, self).tearDown()
         # restore hijacked security
         self.restore_orig_affaire_security()
         self.restore_orig_cwuser_security()
+        super(BaseMSPlannerTC, self).tearDown()
 
     def restore_orig_affaire_security(self):
         affreadperms = list(self.schema['Affaire'].permissions['read'])