Commit 78fa0381 authored by wenjie.zheng's avatar wenjie.zheng

erp5_workflow: testWorkflow5Method delete useless comment.

parent 476d6715
...@@ -59,14 +59,7 @@ class TestERP5Workflow(ERP5TypeTestCase): ...@@ -59,14 +59,7 @@ class TestERP5Workflow(ERP5TypeTestCase):
type_base_category_list=(['category_state',]) type_base_category_list=(['category_state',])
) )
#type_object.setWorkflow5Value(new_workflow) type_object.erp5workflow_list = ('new_workflow',)
type_object.workflow_list = ('new_workflow',)
#type_object.setProperty('Transition_2', new_workflow)
#self.assertEqual(type_object.getBaseCategoryList(), ['workflow5'])
#self.assertEqual(type_object.getWorkflow5(),
# 'workflow_module/new_workflow')
#self.assertEqual(len(type_object.getWorkflow5ValueList()), 1)
# create a module # create a module
self.portal.portal_types.newContent( self.portal.portal_types.newContent(
...@@ -87,22 +80,15 @@ class TestERP5Workflow(ERP5TypeTestCase): ...@@ -87,22 +80,15 @@ class TestERP5Workflow(ERP5TypeTestCase):
### execute transition ### execute transition
t1.execute(new_object) t1.execute(new_object)
#new_object.transition1()
self.assertEqual(new_object.getCategoryStateTitle(), 'validated') self.assertEqual(new_object.getCategoryStateTitle(), 'validated')
### call accessor ### call accessor
#new_object.quoi() # accessor is not whatever
new_object.transition2() new_object.transition2()
#from thread import get_ident
#raise NotImplementedError (get_ident())
#raise NotImplementedError (new_object.transition2().__class__)# <type 'NoneType'>
self.assertEqual(new_object.getCategoryStateTitle(), 'draft') self.assertEqual(new_object.getCategoryStateTitle(), 'draft')
new_object.transition1() new_object.transition1()
self.assertEqual(new_object.getCategoryStateTitle(), 'validated') self.assertEqual(new_object.getCategoryStateTitle(), 'validated')
#new_object.set_to_couscous_please()
new_object.setToCouscousPlease() new_object.setToCouscousPlease()
self.assertEqual(new_object.getCategoryStateTitle(), 'couscous') self.assertEqual(new_object.getCategoryStateTitle(), 'couscous')
......
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