Esempio n. 1
0
    def test_mailto_scheme(self):
        assert E.recode_email('mailto:' +
                              self.email) == 'mailto:' + self.expected

        # This is technically wrong, but we fix it.
        assert E.recode_email('mailto://' +
                              self.email) == 'mailto:' + self.expected
Esempio n. 2
0
 def test_recode_email_idempotent(self):
     assert E.recode_email(E.recode_email(self.email)) == self.expected
Esempio n. 3
0
 def test_recode_email(self):
     assert E.recode_email(self.email) == self.expected
Esempio n. 4
0
    def test_mailto_scheme(self):
        assert E.recode_email('mailto:' + self.email) == 'mailto:' + self.expected

        # This is technically wrong, but we fix it.
        assert E.recode_email('mailto://' + self.email) == 'mailto:' + self.expected
Esempio n. 5
0
 def test_recode_email_idempotent(self):
     assert E.recode_email(E.recode_email(self.email)) == self.expected
Esempio n. 6
0
 def test_recode_email(self):
     assert E.recode_email(self.email) == self.expected