Commit b7f0dde5 authored by Mame Coumba Sall's avatar Mame Coumba Sall

Add a test that verifies that when a bug is resolved, we

can still reopen it.


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