From 8105c9ea97a74445e35bd60f7c435c2e3bf188c5 Mon Sep 17 00:00:00 2001
From: Fabien Morin <fabien@nexedi.com>
Date: Tue, 1 Jul 2008 15:18:57 +0000
Subject: [PATCH] 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
---
 product/ERP5/tests/testERP5Base.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/product/ERP5/tests/testERP5Base.py b/product/ERP5/tests/testERP5Base.py
index 7deeb89de2..1b42a520ff 100644
--- a/product/ERP5/tests/testERP5Base.py
+++ b/product/ERP5/tests/testERP5Base.py
@@ -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')
-- 
2.30.9