diff --git a/product/ERP5/tests/testERP5WebWithCRM.py b/product/ERP5/tests/testERP5WebWithCRM.py index 500d15e7d3554044601353a1901c1e4124d00974..a349a2e6e198c2d45d3027dc4cbe45181230b898 100644 --- a/product/ERP5/tests/testERP5WebWithCRM.py +++ b/product/ERP5/tests/testERP5WebWithCRM.py @@ -115,8 +115,12 @@ class TestERP5WebWithCRM(ERP5TypeTestCase): self.login() # Now a web message has been created + telephone_key = 'source_person_default_telephone_text' event = self.portal.event_module.objectValues()[0] for property_id, value in form_kw.iteritems(): + if property_id == telephone_key: + value = '+(0)-%s' % value + self.assertEquals(event.getProperty(property_id), value) self.assertEquals(event.getSourceCarrier(), web_section.getRelativeUrl()) self.assertTrue(event.hasStartDate()) @@ -165,10 +169,14 @@ class TestERP5WebWithCRM(ERP5TypeTestCase): self.logout() self.login() + telephone_key = "source_person_default_telephone_text" # Now a web message has been created event = self.portal.event_module.objectValues()[0] for property_id, value in form_kw.iteritems(): + if property_id == telephone_key: + value = '+(0)-%s' % value self.assertEquals(event.getProperty(property_id), value) + self.assertEquals(event.getSourceCarrier(), web_section.getRelativeUrl()) self.assertTrue(event.hasStartDate()) self.assertTrue(event.hasSource()) # User was connected