[Erp5-report] r12701 - /erp5/trunk/products/ERP5/tests/testBug.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Feb 14 17:26:59 CET 2007
Author: kevin
Date: Wed Feb 14 17:26:56 2007
New Revision: 12701
URL: http://svn.erp5.org?rev=12701&view=rev
Log:
Fix state tests.
Set bug as tested before closing 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=12701&r1=12700&r2=12701&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testBug.py (original)
+++ erp5/trunk/products/ERP5/tests/testBug.py Wed Feb 14 17:26:56 2007
@@ -150,7 +150,7 @@
"""
bug = sequence.get('bug')
self.workflow_tool.doActionFor(bug, 'close_action')
- self.assertEquals(bug.getValidationState(), 'close')
+ self.assertEquals(bug.getValidationState(), 'closed')
def stepCancelBug(self, sequence=None, sequence_list=None, **kw):
@@ -159,7 +159,7 @@
"""
bug = sequence.get('bug')
self.workflow_tool.doActionFor(bug, 'cancel_action')
- self.assertEquals(bug.getValidationState(), 'cancel')
+ self.assertEquals(bug.getValidationState(), 'cancelled')
def stepFollowBug(self, sequence=None, sequence_list=None, **kw):
@@ -168,7 +168,6 @@
"""
bug = sequence.get('bug')
self.workflow_tool.doActionFor(bug, 'follow_action', comment="Your Bug report is bad. You don't know how to report a bug. Please read http://www.chiark.greenend.org.uk/~sgtatham/bugs.html and resubmit your bug.")
- self.assertEquals(bug.getValidationState(), 'follow')
def stepSetTestedBug(self, sequence=None, sequence_list=None, **kw):
@@ -212,6 +211,7 @@
, 'stepOpenBug'
, 'stepTic'
, 'stepSetOldClosedDate'
+ , 'stepSetTestedBug'
, 'stepCloseBug'
, 'stepTic'
, 'stepCheckClosedDate'
More information about the Erp5-report
mailing list