Commit e3007889 authored by Romain Courteaud's avatar Romain Courteaud

Temp object now get an automatic 'None' ID.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20409 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d0256637
......@@ -313,8 +313,8 @@ class TestERP5Type(PropertySheetTestCase, LogInterceptor):
o = portal.person_module.newContent(portal_type="Person",
temp_object=1)
second_id = o.getId()
self.assertNotEquals(first_id, second_id)
self.assertEquals(str(int(first_id) + 1), second_id)
self.assertEquals(first_id, second_id)
self.assertEquals('None', second_id)
def test_04_CategoryAccessors(self, quiet=quiet, run=run_all_test):
"""
......
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