Commit 03c2f0d5 authored by Nicolas Delaby's avatar Nicolas Delaby

Check also URL documents

parent 4e9905c2
...@@ -84,6 +84,14 @@ class TestERP5Coordinate(ERP5TypeTestCase): ...@@ -84,6 +84,14 @@ class TestERP5Coordinate(ERP5TypeTestCase):
self.assertEquals(address.getCoordinateText(), address_text) self.assertEquals(address.getCoordinateText(), address_text)
self.assertEquals(address.asText(), address_text) self.assertEquals(address.asText(), address_text)
# Check Email
email = person.newContent(portal_type='Email')
self.assertEquals(email.getCoordinateText(), None)
self.assertEquals(email.getCoordinateText(''), '')
email_text = 'toto@example.com'
email.setCoordinateText(email_text)
self.assertEquals(email.getCoordinateText(), email_text)
self.assertEquals(email.asText(), email_text)
# Old API check backward compatibility # Old API check backward compatibility
def test_TelephoneAsText(self): def test_TelephoneAsText(self):
......
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