Ejemplo n.º 1
0
 def test_encode_email_idempotent(self):
     assert E.encode_email(E.encode_email(self.email)) == self.expected
Ejemplo n.º 2
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')
Ejemplo n.º 3
0
 def test_encode_email(self):
     assert E.encode_email(self.email) == self.expected
Ejemplo n.º 4
0
 def test_empty_string():
     assert E.encode_email('') == ''
Ejemplo n.º 5
0
 def test_encode_email_idempotent(self):
     assert E.encode_email(E.encode_email(self.email)) == self.expected
Ejemplo n.º 6
0
 def test_encode_email(self):
     assert E.encode_email(self.email) == self.expected
Ejemplo n.º 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')
Ejemplo n.º 8
0
 def test_empty_string():
     assert E.encode_email('') == ''