Commit 0562748c authored by Romain Courteaud's avatar Romain Courteaud

Check that created object has a title value equals to None.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9198 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1b46290f
...@@ -154,7 +154,7 @@ class TestBase(ERP5TypeTestCase): ...@@ -154,7 +154,7 @@ class TestBase(ERP5TypeTestCase):
object_instance = module.newContent(portal_type=self.object_portal_type) object_instance = module.newContent(portal_type=self.object_portal_type)
sequence.edit( sequence.edit(
object_instance=object_instance, object_instance=object_instance,
current_title='', current_title=None,
current_group_value=None current_group_value=None
) )
...@@ -861,6 +861,18 @@ class TestBase(ERP5TypeTestCase): ...@@ -861,6 +861,18 @@ class TestBase(ERP5TypeTestCase):
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
def test_08_emptyObjectHasNoTitle(self, quiet=0, run=run_all_test):
"""
Test if edit update a tales expression.
"""
if not run: return
portal = self.getPortal()
portal_type = "Organisation"
module = portal.getDefaultModule(portal_type=portal_type)
object = module.newContent(portal_type=portal_type)
self.assertEquals(None,
object.getProperty("title"))
if __name__ == '__main__': if __name__ == '__main__':
framework() framework()
else: else:
......
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