[Erp5-report] r32792 mame - /erp5/trunk/products/ERP5/tests/testBug.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Feb 18 16:00:17 CET 2010
Author: mame
Date: Thu Feb 18 16:00:14 2010
New Revision: 32792
URL: http://svn.erp5.org?rev=32792&view=rev
Log:
Add a test that verifies that when a bug is resolved, we
can still reopen it.
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=32792&r1=32791&r2=32792&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testBug.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testBug.py [utf8] Thu Feb 18 16:00:14 2010
@@ -549,6 +549,28 @@
self.assertEqual(title, bug_line.getTitle())
self.assertEqual('delivered', bug_line.getSimulationState())
+ def test_08_openResolvedBug(self, quiet=QUIET, run=RUN_ALL_TEST):
+ """
+ Test that a bug is resolved, we can still reopen it
+ """
+ if not run: return
+ sequence_list = SequenceList()
+ step_list = [ 'stepCreateBug'
+ , 'stepCheckBugInit'
+ , 'stepOpenBug'
+ , 'stepTic'
+ , 'stepAssignBug'
+ , 'stepTic'
+ , 'stepResolveBug'
+ , 'stepTic'
+ , 'stepOpenBug'
+ , 'stepTic'
+ ]
+ sequence_string = ' '.join(step_list)
+ sequence_list.addSequenceString(sequence_string)
+ sequence_list.play(self, quiet=quiet)
+
+
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestBug))
More information about the Erp5-report
mailing list