Commit f7ac6123 authored by Romain Courteaud's avatar Romain Courteaud

Check getCreationDate on documents.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18716 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 47932232
...@@ -458,6 +458,20 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -458,6 +458,20 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional):
self.assertEquals('attachment; filename="import_data_list.pdf"', self.assertEquals('attachment; filename="import_data_list.pdf"',
response.headers['content-disposition']) response.headers['content-disposition'])
def test_01_getCreationDate(self):
"""
Check getCreationDate on all document type, as those documents
are not associated to edit_workflow.
"""
portal = self.getPortalObject()
for document_type in portal.getPortalDocumentTypeList():
module = portal.getDefaultModule(document_type)
obj = module.newContent(portal_type=document_type)
self.assertNotEquals(obj.getCreationDate(),
module.getCreationDate())
self.assertNotEquals(obj.getCreationDate(),
portal.CreationDate())
def test_suite(): def test_suite():
suite = unittest.TestSuite() suite = unittest.TestSuite()
......
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