Commit 26edca84 authored by Sebastien Robin's avatar Sebastien Robin

added new test wich fails


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@971 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f7c98b32
...@@ -297,6 +297,19 @@ class TestCMFCategory(ERP5TypeTestCase): ...@@ -297,6 +297,19 @@ class TestCMFCategory(ERP5TypeTestCase):
p2.immediateReindexObject() p2.immediateReindexObject()
self.assertEqual(len(o1.getSubordinationRelatedValueList()),2) 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__': if __name__ == '__main__':
framework() framework()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment