Commit 17f24824 authored by Nicolas Delaby's avatar Nicolas Delaby

Add test for _getDefaultRelatedProperty Accessor

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12027 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a2020994
......@@ -616,6 +616,13 @@ class TestCMFCategory(ERP5TypeTestCase):
value_list = pc.getRelatedValueList(c)
self.assertEquals(len(value_list), 1)
#test _getDefaultRelatedProperty Accessor
person = self.getPortal().person_module.newContent(id='person_test')
org = self.getPortal().organisation_module.newContent(id='organisation_test',destination='person_module/person_test')
get_transaction().commit()
self.tic()
self.assertEquals(person.getDefaultDestinationRelated(),'organisation_module/organisation_test' )
def test_17_CategoriesAndDomainSelection(self, quiet=quiet,
run=run_all_test):
""" Tests Categories and Domain Selection """
......
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