From 995ec112c27457635e5df0da923450d505a8852c Mon Sep 17 00:00:00 2001
From: Gabriel Monnerat <gabriel@tiolive.com>
Date: Thu, 31 Mar 2011 15:29:20 +0000
Subject: [PATCH] add new step and docstring

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44928 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../testUNGConfigurationWorkflow.py                | 14 +++++++++++++-
 bt5/erp5_configurator_ung/bt/revision              |  2 +-
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/bt5/erp5_configurator_ung/TestTemplateItem/testUNGConfigurationWorkflow.py b/bt5/erp5_configurator_ung/TestTemplateItem/testUNGConfigurationWorkflow.py
index 999b2e6278..259e5b22a1 100644
--- a/bt5/erp5_configurator_ung/TestTemplateItem/testUNGConfigurationWorkflow.py
+++ b/bt5/erp5_configurator_ung/TestTemplateItem/testUNGConfigurationWorkflow.py
@@ -87,6 +87,7 @@ class TestUNGConfiguratorWorkflow(ERP5TypeTestCase):
      stepConfiguratorNext
      stepTic
      stepCheckConfigureWebSiteForm
+     stepCheckPreferenceConfigurationBrazil
      stepSetupWebSiteConfiguration
      stepConfiguratorNext
      stepTic
@@ -284,8 +285,19 @@ class TestUNGConfiguratorWorkflow(ERP5TypeTestCase):
     self.assertEquals('Previous', response_dict['previous'])
     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):
-    """ """
+    """ Setup the language of Web Site """
     next_dict = dict(your_default_available_language="pt-BR")
     sequence.edit(next_dict=next_dict)
 
diff --git a/bt5/erp5_configurator_ung/bt/revision b/bt5/erp5_configurator_ung/bt/revision
index cabf43b5dd..410b14d2ce 100644
--- a/bt5/erp5_configurator_ung/bt/revision
+++ b/bt5/erp5_configurator_ung/bt/revision
@@ -1 +1 @@
-24
\ No newline at end of file
+25
\ No newline at end of file
-- 
2.30.9