Commit 91fdaaeb authored by Łukasz Nowak's avatar Łukasz Nowak

Email does not have to be unique anymore.

parent ec9b9872
......@@ -144,39 +144,6 @@ class TestVifibEmailConstraint(testVifibMixin):
self.assertFalse(consistency_message in getMessageList(email))
def test_url_string_unique(self):
url_string = rndstr()
url_string_2 = rndstr()
email = self.portal.person_module.newContent(portal_type='Person'
).newContent(portal_type='Email', url_string=url_string)
email_2 = self.portal.person_module.newContent(portal_type='Person'
).newContent(portal_type='Email', url_string=url_string)
consistency_message = 'Email must be unique'
self.stepTic()
self.assertTrue(consistency_message in getMessageList(email))
self.assertTrue(consistency_message in getMessageList(email_2))
email_2.setUrlString(url_string_2)
self.stepTic()
self.assertFalse(consistency_message in getMessageList(email))
self.assertFalse(consistency_message in getMessageList(email_2))
def test_url_string_does_not_conflict_with_credential(self):
url_string = rndstr()
person_email = self.portal.person_module.newContent(portal_type='Person'
).newContent(portal_type='Email', url_string=url_string)
credential_email = self.portal.credential_update_module.newContent(
portal_type='Credential Update').newContent(portal_type='Email',
url_string=url_string)
self.stepTic()
self.assertFalse('Email must be unique' in getMessageList(person_email))
self.assertFalse('Email must be unique' in getMessageList(credential_email))
class TestVifibInternalPackingListConstraint(testVifibMixin):
def getTitle(self):
return "Vifib Internal Packing List Constraint checks"
......
446
\ No newline at end of file
447
\ 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