From 26edca8423b798ae7e498fd189f98a38a321c303 Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Mon, 7 Jun 2004 16:57:03 +0000
Subject: [PATCH] added new test wich fails

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@971 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/CMFCategory/tests/testCMFCategory.py | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/product/CMFCategory/tests/testCMFCategory.py b/product/CMFCategory/tests/testCMFCategory.py
index 4ba93a1df0..8b35d339b9 100755
--- a/product/CMFCategory/tests/testCMFCategory.py
+++ b/product/CMFCategory/tests/testCMFCategory.py
@@ -297,6 +297,19 @@ class TestCMFCategory(ERP5TypeTestCase):
     p2.immediateReindexObject() 
     self.assertEqual(len(o1.getSubordinationRelatedValueList()),2)
 
+  def test_11_SetSubordinationValueToNone(self, quiet=0, run=run_all_test):
+    # Test if an infinite loop of the acquisition for a single value is working
+    # Typical error results from bad brain (do not copy, use aliases for zsqlbrain.py)
+    if not run: return
+    if not quiet:
+      ZopeTestCase._print('Test Set Subordination Value To None \n')
+      LOG('Testing... ',0,'testSetSubordinationValueToNone')
+    portal = self.getPortal()
+    p1 = self.getPersonModule()._getOb(self.id1)
+    p1.setSubordinationValue(None)
+    p1.immediateReindexObject()
+    self.assertEqual(o1.getSubordinationValue(),None)
+
 
 if __name__ == '__main__':
     framework()
-- 
2.30.9