From b257dd9d47ab2c1969ad8aeee5244715618190fe Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com>
Date: Mon, 26 May 2008 15:18:39 +0000
Subject: [PATCH] it's system pref which outranks pref now

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21135 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Form/tests/testPreferences.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/product/ERP5Form/tests/testPreferences.py b/product/ERP5Form/tests/testPreferences.py
index c351eb0512..1fd81455a4 100644
--- a/product/ERP5Form/tests/testPreferences.py
+++ b/product/ERP5Form/tests/testPreferences.py
@@ -453,7 +453,7 @@ class TestPreferences(ERP5TypeTestCase):
     self.assertEquals(['this_is_system'],
                       preference_tool.getPreferredAccountingTransactionSimulationStateList())
 
-    # create a user pref and check it outranks the system one if
+    # create a user pref and check it doesn't outranks the system one if
     # they both defined same pref
     user_pref = preference_tool.newContent(
                           portal_type='Preference',
@@ -465,6 +465,8 @@ class TestPreferences(ERP5TypeTestCase):
     get_transaction().commit()
     self.tic()
     self.assertEquals(['this_is_user'],
+                      user_pref.getPreferredAccountingTransactionSimulationStateList())
+    self.assertEquals(['this_is_system'],
                       preference_tool.getPreferredAccountingTransactionSimulationStateList())
 
     # check a user can't edit preference which are marked for manager
-- 
2.30.9