Commit 855e6cb5 authored by Łukasz Nowak's avatar Łukasz Nowak

- check that getIcon on ERP5 Type works as expected


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38845 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 68780113
......@@ -2725,6 +2725,16 @@ class TestPropertySheet:
dummy_instance.setReference('test')
self.assertEquals('test', dummy_instance.getReference())
def test_getIcon(self):
"""
Check that getIcon returns proper icon.
"""
portal = self.getPortalObject()
folder = self.getOrganisationModule()
o = folder.newContent(portal_type='Organisation')
self.assertTrue(o.getIcon().endswith(portal.portal_types['Organisation']\
.getTypeIcon()))
class TestAccessControl(ERP5TypeTestCase):
# Isolate test in a dedicaced class in order not to break other tests
......
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