def test_encode_email_idempotent(self):
     assert E.encode_email(E.encode_email(self.email)) == self.expected
 def test_not_an_email(self):
     not_an_email = u"They don't use email in " + self.munchen
     assert E.encode_email(not_an_email) == not_an_email.encode('IDNA')
 def test_encode_email(self):
     assert E.encode_email(self.email) == self.expected
 def test_empty_string():
     assert E.encode_email('') == ''
Exemple #5
0
 def test_encode_email_idempotent(self):
     assert E.encode_email(E.encode_email(self.email)) == self.expected
Exemple #6
0
 def test_encode_email(self):
     assert E.encode_email(self.email) == self.expected
Exemple #7
0
 def test_not_an_email(self):
     not_an_email = u"They don't use email in " + self.munchen
     assert E.encode_email(not_an_email) == not_an_email.encode('IDNA').decode('US-ASCII')
Exemple #8
0
 def test_empty_string():
     assert E.encode_email('') == ''