Commit 2c64ae24 authored by Jérome Perrin's avatar Jérome Perrin

The default value of getDescription is an empty string.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13588 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1b13a509
......@@ -48,6 +48,7 @@ class DublinCore:
'mode' : 'w' },
{ 'id' : 'description',
'description' : '',
'default' : '',
'type' : 'text',
'mode' : 'w' },
{ 'id' : 'contributor',
......
......@@ -840,13 +840,11 @@ class TestPropertySheet:
"""
Tests that the default value of getDescription is returned correctly
"""
portal = self.getPortal()
module = self.getPersonModule()
person = module.newContent(portal_type='Person')
person = self.getPersonModule().newContent(portal_type='Person')
# test default value of getDescription accessor
# as defined in the DublinCore PropertySheet
self.assertEquals(None, person.getDescription())
self.assertEquals('', person.getDescription())
self.assertEquals('foo',
person.getDescription('foo'))
......
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