Back to index

moin  1.9.0~rc2
Public Member Functions | Static Private Attributes
test_sendmail.TestencodeSpamSafeEmail Class Reference

List of all members.

Public Member Functions

def testEncodeSpamSafeMail
def testEncodeSpamSafeMailAndObfuscate

Static Private Attributes

tuple _tests

Detailed Description

mail.sendmail: testing spam safe mail

Definition at line 43 of file test_sendmail.py.


Member Function Documentation

mail.sendmail: encoding mail address to spam safe mail

Definition at line 58 of file test_sendmail.py.

00058 
00059     def testEncodeSpamSafeMail(self):
00060         """mail.sendmail: encoding mail address to spam safe mail"""
00061         for coded, expected in self._tests:
00062             assert sendmail.encodeSpamSafeEmail(coded) == expected

mail.sendmail: encoding mail address by an obfuscate string to spam safe mail 

Definition at line 63 of file test_sendmail.py.

00063 
00064     def testEncodeSpamSafeMailAndObfuscate(self):
00065         """mail.sendmail: encoding mail address by an obfuscate string to spam safe mail """
00066         for coded, expected in self._tests:
00067             expected = expected.replace(' AT ', ' AT SYCTE ')
00068             assert sendmail.encodeSpamSafeEmail(coded, 'SYCTE') == expected


Member Data Documentation

Initial value:
(
        ('', ''),
        ('@', ' AT '),
        ('.', ' DOT '),
        ('-', ' DASH '),
        ('lower', 'lower'),
        ('Firstname.Lastname@example.net',
         'firstname DOT lastname AT example DOT net'),
        ('F.Lastname@example.net',
         'f DOT lastname AT example DOT net'),
        )

Definition at line 46 of file test_sendmail.py.


The documentation for this class was generated from the following file: