From db26edf9eccd7c3d05ad65f518f05c2557d686b7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Wed, 15 Apr 2009 14:32:05 +0000
Subject: [PATCH] test that activity is acquired on a person from it's default
 career

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26447 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/tests/testERP5Base.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/product/ERP5/tests/testERP5Base.py b/product/ERP5/tests/testERP5Base.py
index 65b8cb91f4..f6f0df5f80 100644
--- a/product/ERP5/tests/testERP5Base.py
+++ b/product/ERP5/tests/testERP5Base.py
@@ -523,6 +523,10 @@ class TestERP5Base(ERP5TypeTestCase):
     self.assertEquals(person.getCareerActivityTitle(), 'Software')
     self.assertEquals(person.getCareerReference(), '1234')
 
+    # activity must be acquired on person
+    self.assertEquals(person.getActivity(), person.getCareerActivity())
+    self.assertEquals('Software', person.getActivityTitle())
+
     # Set & Check function
     function_categories = self.getCategoryList(base_category='function')
     function_path   = function_categories[1]['path']
-- 
2.30.9