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: ...@@ -48,6 +48,7 @@ class DublinCore:
'mode' : 'w' }, 'mode' : 'w' },
{ 'id' : 'description', { 'id' : 'description',
'description' : '', 'description' : '',
'default' : '',
'type' : 'text', 'type' : 'text',
'mode' : 'w' }, 'mode' : 'w' },
{ 'id' : 'contributor', { 'id' : 'contributor',
......
...@@ -840,14 +840,12 @@ class TestPropertySheet: ...@@ -840,14 +840,12 @@ class TestPropertySheet:
""" """
Tests that the default value of getDescription is returned correctly Tests that the default value of getDescription is returned correctly
""" """
portal = self.getPortal() person = self.getPersonModule().newContent(portal_type='Person')
module = self.getPersonModule()
person = module.newContent(portal_type='Person')
# test default value of getDescription accessor # test default value of getDescription accessor
# as defined in the DublinCore PropertySheet # as defined in the DublinCore PropertySheet
self.assertEquals(None, person.getDescription()) self.assertEquals('', person.getDescription())
self.assertEquals('foo', self.assertEquals('foo',
person.getDescription('foo')) person.getDescription('foo'))
def test_16_SimpleStringAccessor(self,quiet=quiet, run=run_all_test): def test_16_SimpleStringAccessor(self,quiet=quiet, run=run_all_test):
......
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