Commit bea37bee authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fixup! fixup! CMFCategory: keep only the first occurrence of each category while preserving order.

parent 2c3ec63c
...@@ -716,7 +716,7 @@ class TestERP5Type(PropertySheetTestCase, LogInterceptor): ...@@ -716,7 +716,7 @@ class TestERP5Type(PropertySheetTestCase, LogInterceptor):
person.setRegionUid(alpha.getUid()) person.setRegionUid(alpha.getUid())
self.assertEqual(person.getRegion(), 'alpha') self.assertEqual(person.getRegion(), 'alpha')
person.setRegionUidList([beta.getUid(), beta.getUid()]) person.setRegionUidList([beta.getUid(), beta.getUid()])
self.assertEqual(person.getRegionList(), ['beta', 'beta']) self.assertEqual(person.getRegionList(), ['beta'])
person.setRegionUidSet([alpha.getUid(), alpha.getUid()]) person.setRegionUidSet([alpha.getUid(), alpha.getUid()])
self.assertEqual(person.getRegionList(), ['alpha']) self.assertEqual(person.getRegionList(), ['alpha'])
person.setRegionUidList([alpha.getUid(), beta.getUid(), alpha.getUid()]) person.setRegionUidList([alpha.getUid(), beta.getUid(), alpha.getUid()])
...@@ -753,7 +753,7 @@ class TestERP5Type(PropertySheetTestCase, LogInterceptor): ...@@ -753,7 +753,7 @@ class TestERP5Type(PropertySheetTestCase, LogInterceptor):
person.setSubject('beta') person.setSubject('beta')
self.assertEqual(person.getSubject(), 'beta') self.assertEqual(person.getSubject(), 'beta')
person.setSubjectList(['alpha', 'alpha']) person.setSubjectList(['alpha', 'alpha'])
self.assertEqual(person.getSubjectList(), ['alpha']) self.assertEqual(person.getSubjectList(), ['alpha', 'alpha'])
self.assertEqual(person.getSubjectSet(), ['alpha']) self.assertEqual(person.getSubjectSet(), ['alpha'])
person.setSubjectSet(['beta', 'beta']) person.setSubjectSet(['beta', 'beta'])
self.assertEqual(person.getSubjectList(), ['beta']) self.assertEqual(person.getSubjectList(), ['beta'])
......
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