Commit 10d1f479 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

add a test if getUid() == getProperty('uid') for tools etc.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35928 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 418be70e
...@@ -490,6 +490,12 @@ class TestERP5Core(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -490,6 +490,12 @@ class TestERP5Core(ERP5TypeTestCase, ZopeTestCase.Functional):
transaction.savepoint(optimistic=True) transaction.savepoint(optimistic=True)
self.assertEquals(len(module.objectValues()), 2) self.assertEquals(len(module.objectValues()), 2)
def test_getPropertyForUid(self):
error_list = []
for i in self.portal.objectValues():
if i.getUid() != i.getProperty('uid'):
error_list.append((i.getId(), i.getUid(), i.getProperty('uid')))
self.assertEquals(error_list, [])
def test_suite(): def test_suite():
suite = unittest.TestSuite() suite = unittest.TestSuite()
......
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