[Erp5-report] r29093 - /erp5/trunk/products/ERP5/tests/testBug.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Sep 17 15:19:55 CEST 2009
Author: luke
Date: Thu Sep 17 15:19:54 2009
New Revision: 29093
URL: http://svn.erp5.org?rev=29093&view=rev
Log:
- check that start_date of cloned Bug Line is newer that original one
Modified:
erp5/trunk/products/ERP5/tests/testBug.py
Modified: erp5/trunk/products/ERP5/tests/testBug.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testBug.py?rev=29093&r1=29092&r2=29093&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testBug.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testBug.py [utf8] Thu Sep 17 15:19:54 2009
@@ -510,6 +510,14 @@
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet)
+ def test_06_BugLineClone(self):
+ bug_portal_type = 'Bug'
+ bug_line_portal_type = 'Bug Line'
+ module = self.portal.getDefaultModule(portal_type=bug_portal_type)
+ bug = module.newContent(portal_type=bug_portal_type)
+ bug_line = bug.newContent(portal_type='Bug Line')
+ cloned_bug_line = bug_line.Base_createCloneDocument(batch_mode=1)
+ self.assertTrue(cloned_bug_line.getStartDate() > bug_line.getStartDate())
def test_suite():
suite = unittest.TestSuite()
More information about the Erp5-report
mailing list