Example #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
Example #2
0
 def test_recode_email_idempotent(self):
     assert E.recode_email(E.recode_email(self.email)) == self.expected
Example #3
0
 def test_recode_email(self):
     assert E.recode_email(self.email) == self.expected
Example #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
Example #5
0
 def test_recode_email_idempotent(self):
     assert E.recode_email(E.recode_email(self.email)) == self.expected
Example #6
0
 def test_recode_email(self):
     assert E.recode_email(self.email) == self.expected