Commit 50583db5 authored by Romain Courteaud's avatar Romain Courteaud

Use ERP5TypeTestCase method instead of hardcoding the IDs.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4341 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 35a9c6ef
...@@ -99,7 +99,7 @@ class TestERP5Type(ERP5TypeTestCase): ...@@ -99,7 +99,7 @@ class TestERP5Type(ERP5TypeTestCase):
def test_02_AqDynamic(self): def test_02_AqDynamic(self):
portal = self.getPortal() portal = self.getPortal()
module = portal.person module = self.getPersonModule()
person = module.newContent(id='1', portal_type='Person') person = module.newContent(id='1', portal_type='Person')
from Products.ERP5Type import Document from Products.ERP5Type import Document
# Person class should have no method getFirstName # Person class should have no method getFirstName
......
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