Commit 9cc514c4 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added a test to make sure folders have no title by default.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13338 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent af602342
......@@ -1124,6 +1124,19 @@ class TestPropertySheet:
self.assertTrue('Auditor' in user.getRolesInContext(person))
self.assertEquals(len(person_module.searchFolder()), 1)
def test_23_titleIsNotDefinedByDefault(self, quiet=quiet, run=run_all_test):
"""
Tests that no title attribute is set on new content
"""
if not run: return
portal = self.getPortal()
person_module = self.getPersonModule()
person = person_module.newContent(portal_type='Person')
self.assertFalse(person.hasTitle())
self.assertFalse(person.__dict__.has_key('title'))
if __name__ == '__main__':
framework()
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