[Erp5-report] r30109 - /erp5/trunk/products/ERP5/tests/testBug.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Oct 29 15:08:03 CET 2009


Author: luke
Date: Thu Oct 29 15:08:02 2009
New Revision: 30109

URL: http://svn.erp5.org?rev=30109&view=rev
Log:
 - 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)

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=30109&r1=30108&r2=30109&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testBug.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testBug.py [utf8] Thu Oct 29 15:08:02 2009
@@ -515,6 +515,25 @@
     cloned_bug_line = bug_line.Base_createCloneDocument(batch_mode=1)
     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():
   suite = unittest.TestSuite()
   suite.addTest(unittest.makeSuite(TestBug))




More information about the Erp5-report mailing list