Commit 995ec112 authored by Gabriel Monnerat's avatar Gabriel Monnerat

add new step and docstring

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44928 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fde9b0c9
...@@ -87,6 +87,7 @@ class TestUNGConfiguratorWorkflow(ERP5TypeTestCase): ...@@ -87,6 +87,7 @@ class TestUNGConfiguratorWorkflow(ERP5TypeTestCase):
stepConfiguratorNext stepConfiguratorNext
stepTic stepTic
stepCheckConfigureWebSiteForm stepCheckConfigureWebSiteForm
stepCheckPreferenceConfigurationBrazil
stepSetupWebSiteConfiguration stepSetupWebSiteConfiguration
stepConfiguratorNext stepConfiguratorNext
stepTic stepTic
...@@ -284,8 +285,19 @@ class TestUNGConfiguratorWorkflow(ERP5TypeTestCase): ...@@ -284,8 +285,19 @@ class TestUNGConfiguratorWorkflow(ERP5TypeTestCase):
self.assertEquals('Previous', response_dict['previous']) self.assertEquals('Previous', response_dict['previous'])
self.assertEquals('Configure Web Site', response_dict['next']) self.assertEquals('Configure Web Site', response_dict['next'])
def stepCheckPreferenceConfigurationBrazil(self, sequence=None, sequence_list=None, **kw):
""" Check if organisation was created fine """
business_configuration = sequence.get("business_configuration")
person_config_save = business_configuration["5"]
person_config_item = person_config_save["1"]
self.assertEquals(person_config_item.getReference(), "person_creator")
person_config_item = person_config_save["2"]
self.assertEquals(person_config_item.getReference(), "person_assignee")
person_config_item = person_config_save["3"]
self.assertEquals(person_config_item.getReference(), "person_assignor")
def stepSetupWebSiteConfiguration(self, sequence=None, sequence_list=None, **kw): def stepSetupWebSiteConfiguration(self, sequence=None, sequence_list=None, **kw):
""" """ """ Setup the language of Web Site """
next_dict = dict(your_default_available_language="pt-BR") next_dict = dict(your_default_available_language="pt-BR")
sequence.edit(next_dict=next_dict) sequence.edit(next_dict=next_dict)
......
24 25
\ No newline at end of file \ No newline at end of file
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