예제 #1
0
    def setUp(self):
        self._mlist = create_list('*****@*****.**')
        self._mlist.moderator_password = config.password_context.encrypt(
            'super secret')
        self._rule = approved.Approved()
        self._msg = mfs("""\
From: [email protected]
To: [email protected]
Subject: A Message with non-ascii body
Message-ID: <ant>
MIME-Version: 1.0

""")
예제 #2
0
    def setUp(self):
        self._mlist = create_list('*****@*****.**')
        self._rule = approved.Approved()
        self._msg = mfs("""\
From: [email protected]
To: [email protected]
Subject: A Message with non-ascii body
Message-ID: <ant>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

This is a message body with a non-ascii character =E4
""")
예제 #3
0
    def setUp(self):
        self._mlist = create_list('*****@*****.**')
        # The default testing hash algorithm is "roundup_plaintext" which
        # yields hashed passwords of the form: {plaintext}abc
        #
        # Migration is automatically supported when a more modern password
        # hash is chosen after the original password is set.  As long as the
        # old password still validates, the migration happens automatically.
        self._mlist.moderator_password = config.password_context.encrypt(
            'super secret')
        self._rule = approved.Approved()
        self._msg = mfs("""\
From: [email protected]
To: [email protected]
Subject: A Message with non-ascii body
Message-ID: <ant>
MIME-Version: 1.0

A message body.
""")
예제 #4
0
 def setUp(self):
     self._mlist = create_list('*****@*****.**')
     self._rule = approved.Approved()
예제 #5
0
 def setUp(self):
     self._mlist = create_list('*****@*****.**')
     self._mlist.moderator_password = config.password_context.encrypt(
         'super secret')
     self._rule = approved.Approved()
     self._msg_text_template = """\