Commit 8105c9ea authored by Fabien Morin's avatar Fabien Morin

add a test to check the property birthplace_address exists


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22171 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 05217735
......@@ -866,6 +866,13 @@ class TestERP5Base(ERP5TypeTestCase):
getattr(org.getCreationDate(), slot)(),
'Wrong creation date %s' % org.getCreationDate())
def test_07_BirthplaceOnPerson(self, quiet=QUIET, run=RUN_ALL_TEST):
"""Tests birthplace on Person objects.
"""
pers = self.getPersonModule().newContent(portal_type='Person')
pers.setDefaultBirthplaceAddressCity('Lille')
self.assertEquals('Lille', pers.getDefaultBirthplaceAddressCity())
def test_TelephoneAsText(self):
# Test asText method
pers = self.getPersonModule().newContent(portal_type='Person')
......
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