Back to index

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

List of all members.

Public Member Functions

def testDecodeSpamSafeMail

Static Private Attributes

tuple _tests

Detailed Description

mail.sendmail: testing mail

Definition at line 15 of file test_sendmail.py.


Member Function Documentation

mail.sendmail: decoding spam safe mail

Definition at line 38 of file test_sendmail.py.

00038 
00039     def testDecodeSpamSafeMail(self):
00040         """mail.sendmail: decoding spam safe mail"""
00041         for coded, expected in self._tests:
00042             assert sendmail.decodeSpamSafeEmail(coded) == expected


Member Data Documentation

Initial value:
(
        ('', ''),
        ('AT', '@'),
        ('DOT', '.'),
        ('DASH', '-'),
        ('CAPS', ''),
        ('Mixed', 'Mixed'),
        ('lower', 'lower'),
        ('Firstname DOT Lastname AT example DOT net',
         'Firstname.Lastname@example.net'),
        ('Firstname . Lastname AT exa mp le DOT n e t',
         'Firstname.Lastname@example.net'),
        ('Firstname I DONT WANT SPAM . Lastname@example DOT net',
         'Firstname.Lastname@example.net'),
        ('First name I Lastname DONT AT WANT SPAM example DOT n e t',
         'FirstnameLastname@example.net'),
        ('first.last@example.com', 'first.last@example.com'),
        ('first . last @ example . com', 'first.last@example.com'),
        )

Definition at line 18 of file test_sendmail.py.


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