Commit 43893f04 authored by Rafael Monnerat's avatar Rafael Monnerat

Make sure that Preference is Blank. Thanks to Lucas.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21328 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 52712d0d
......@@ -974,7 +974,6 @@ class TestERP5Base(ERP5TypeTestCase):
["+55-047-12345678/990","+55(0)047-12345678/990"],
["+55-047-12345678/","+55(0)047-12345678"],
["+55-047-12345678","+55(0)047-12345678"]
]
for i in input_list:
......@@ -984,6 +983,10 @@ class TestERP5Base(ERP5TypeTestCase):
def test_TelephoneWhenTheDefaultCountryAndAreaPreferenceIsBlank(self):
pers = self.getPersonModule().newContent(portal_type='Person')
tel = pers.newContent(portal_type='Telephone')
pref = self.portal_preferences.default_site_preference
pref.setPreferredTelephoneDefaultCountryNumber('')
pref.setPreferredTelephoneDefaultAreaNumber('')
pref.enable()
tel.fromText(coordinate_text='12345678')
self.assertEquals('+(0)-12345678',tel.asText())
......
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