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

- test that fast input on bug to send bug lines directly from it works...

 - test that fast input on bug to send bug lines directly from it works properly (properties are set, bug line is put in proper state)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30109 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7decc792
...@@ -515,6 +515,25 @@ class TestBug(ERP5TypeTestCase): ...@@ -515,6 +515,25 @@ class TestBug(ERP5TypeTestCase):
cloned_bug_line = bug_line.Base_createCloneDocument(batch_mode=1) cloned_bug_line = bug_line.Base_createCloneDocument(batch_mode=1)
self.assertTrue(cloned_bug_line.getStartDate() > bug_line.getStartDate()) self.assertTrue(cloned_bug_line.getStartDate() > bug_line.getStartDate())
def test_07_Bug_BugLineSendFastInput(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)
text_content = 'text content'
title = 'title'
request = self.portal.REQUEST
request.set('text_content', text_content)
request.set('title', title)
bug_line = bug.Bug_doBugLineSendFastInputAction(batch_mode=1)
self.assertEqual(text_content, bug_line.getTextContent())
self.assertEqual(title, bug_line.getTitle())
self.assertEqual('delivered', bug_line.getSimulationState())
def test_suite(): def test_suite():
suite = unittest.TestSuite() suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestBug)) suite.addTest(unittest.makeSuite(TestBug))
......
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