Commit db26edf9 authored by Jérome Perrin's avatar Jérome Perrin

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
parent 5338ec9b
...@@ -523,6 +523,10 @@ class TestERP5Base(ERP5TypeTestCase): ...@@ -523,6 +523,10 @@ class TestERP5Base(ERP5TypeTestCase):
self.assertEquals(person.getCareerActivityTitle(), 'Software') self.assertEquals(person.getCareerActivityTitle(), 'Software')
self.assertEquals(person.getCareerReference(), '1234') 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 # Set & Check function
function_categories = self.getCategoryList(base_category='function') function_categories = self.getCategoryList(base_category='function')
function_path = function_categories[1]['path'] function_path = function_categories[1]['path']
......
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