Commit 09670792 authored by Łukasz Nowak's avatar Łukasz Nowak

- check that start_date of cloned Bug Line is newer that original one


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29093 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 25ebdd2f
......@@ -510,6 +510,14 @@ class TestBug(ERP5TypeTestCase):
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()
......
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