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('') == ''
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')