forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
84 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,3 @@ | |
|
||
from sre import * | ||
from sre import __all__ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -313,7 +313,7 @@ def test_del_param(self): | |
msg.del_param("report-type") | ||
eq(msg.get_params(), | ||
[('multipart/report', ''), | ||
('boundary', 'D1690A7AC1.996856090/mail.example.com')]) | ||
('boundary', 'D1690A7AC1.996856090/mail.example.com')]) | ||
msg.set_param("report-type", old_val) | ||
eq(msg.get_params(), | ||
[('multipart/report', ''), | ||
|
@@ -331,7 +331,7 @@ def test_set_type(self): | |
msg.set_type('text/html') | ||
eq(msg['content-type'], 'text/html; charset="us-ascii"') | ||
|
||
|
||
|
||
# Test the email.Encoders module | ||
class TestEncoders(unittest.TestCase): | ||
|
@@ -409,7 +409,7 @@ def test_header_splitter(self): | |
MIME-Version: 1.0 | ||
Content-Transfer-Encoding: 7bit | ||
X-Foobar-Spoink-Defrobnit: wasnipoop; giraffes="very-long-necked-animals"; | ||
spooge="yummy"; hippos="gargantuan"; marshmallows="gooey" | ||
spooge="yummy"; hippos="gargantuan"; marshmallows="gooey" | ||
''') | ||
|
||
|
@@ -450,22 +450,22 @@ def test_splitting_multiple_long_lines(self): | |
msg = Message() | ||
msg['Received'] = """\ | ||
from babylon.socal-raves.org (localhost [127.0.0.1]); by babylon.socal-raves.org (Postfix) with ESMTP id B570E51B81; for <[email protected]>; Sat, 2 Feb 2002 17:00:06 -0800 (PST) | ||
from babylon.socal-raves.org (localhost [127.0.0.1]); by babylon.socal-raves.org (Postfix) with ESMTP id B570E51B81; for <[email protected]>; Sat, 2 Feb 2002 17:00:06 -0800 (PST) | ||
from babylon.socal-raves.org (localhost [127.0.0.1]); by babylon.socal-raves.org (Postfix) with ESMTP id B570E51B81; for <[email protected]>; Sat, 2 Feb 2002 17:00:06 -0800 (PST) | ||
from babylon.socal-raves.org (localhost [127.0.0.1]); by babylon.socal-raves.org (Postfix) with ESMTP id B570E51B81; for <[email protected]>; Sat, 2 Feb 2002 17:00:06 -0800 (PST) | ||
from babylon.socal-raves.org (localhost [127.0.0.1]); by babylon.socal-raves.org (Postfix) with ESMTP id B570E51B81; for <[email protected]>; Sat, 2 Feb 2002 17:00:06 -0800 (PST) | ||
""" | ||
self.assertEqual(msg.as_string(), """\ | ||
Received: from babylon.socal-raves.org (localhost [127.0.0.1]); | ||
by babylon.socal-raves.org (Postfix) with ESMTP id B570E51B81; | ||
for <[email protected]>; | ||
Sat, 2 Feb 2002 17:00:06 -0800 (PST) | ||
from babylon.socal-raves.org (localhost [127.0.0.1]); | ||
by babylon.socal-raves.org (Postfix) with ESMTP id B570E51B81; | ||
for <[email protected]>; | ||
Sat, 2 Feb 2002 17:00:06 -0800 (PST) | ||
from babylon.socal-raves.org (localhost [127.0.0.1]); | ||
by babylon.socal-raves.org (Postfix) with ESMTP id B570E51B81; | ||
for <[email protected]>; | ||
Sat, 2 Feb 2002 17:00:06 -0800 (PST) | ||
by babylon.socal-raves.org (Postfix) with ESMTP id B570E51B81; | ||
for <[email protected]>; | ||
Sat, 2 Feb 2002 17:00:06 -0800 (PST) | ||
from babylon.socal-raves.org (localhost [127.0.0.1]); | ||
by babylon.socal-raves.org (Postfix) with ESMTP id B570E51B81; | ||
for <[email protected]>; | ||
Sat, 2 Feb 2002 17:00:06 -0800 (PST) | ||
from babylon.socal-raves.org (localhost [127.0.0.1]); | ||
by babylon.socal-raves.org (Postfix) with ESMTP id B570E51B81; | ||
for <[email protected]>; | ||
Sat, 2 Feb 2002 17:00:06 -0800 (PST) | ||
""") | ||
|
@@ -721,7 +721,7 @@ def test_no_parts_in_a_multipart(self): | |
--BOUNDARY-- | ||
''') | ||
''') | ||
|
||
def test_one_part_in_a_multipart(self): | ||
outer = MIMEBase('multipart', 'mixed') | ||
|
@@ -748,7 +748,7 @@ def test_one_part_in_a_multipart(self): | |
hello world | ||
--BOUNDARY-- | ||
''') | ||
''') | ||
|
||
def test_seq_parts_in_a_multipart(self): | ||
outer = MIMEBase('multipart', 'mixed') | ||
|
@@ -775,7 +775,7 @@ def test_seq_parts_in_a_multipart(self): | |
hello world | ||
--BOUNDARY-- | ||
''') | ||
''') | ||
|
||
|
||
|
||
|
@@ -1163,11 +1163,11 @@ def test__all__(self): | |
module = __import__('email') | ||
all = module.__all__ | ||
all.sort() | ||
self.assertEqual(all, ['Charset', 'Encoders', 'Errors', 'Generator', | ||
'Header', 'Iterators', 'MIMEAudio', | ||
'MIMEBase', 'MIMEImage', 'MIMEMessage', | ||
self.assertEqual(all, ['Charset', 'Encoders', 'Errors', 'Generator', | ||
'Header', 'Iterators', 'MIMEAudio', | ||
'MIMEBase', 'MIMEImage', 'MIMEMessage', | ||
'MIMEText', 'Message', 'Parser', | ||
'Utils', 'base64MIME', | ||
'Utils', 'base64MIME', | ||
'message_from_file', 'message_from_string', | ||
'quopriMIME']) | ||
|
||
|
@@ -1313,7 +1313,7 @@ def test_whitespace_continuaton(self): | |
From: [email protected] | ||
To: [email protected] | ||
Subject: the next line has a space on it | ||
Date: Mon, 8 Apr 2002 15:09:19 -0400 | ||
Message-ID: spam | ||
|
@@ -1367,7 +1367,7 @@ def test_encode(self): | |
eHh4eCB4eHh4IHh4eHggeHh4eCB4eHh4IHh4eHgg\r | ||
eHh4eCB4eHh4IA==\r | ||
""") | ||
|
||
def test_header_encode(self): | ||
eq = self.assertEqual | ||
he = base64MIME.header_encode | ||
|
@@ -1504,7 +1504,7 @@ def test_encode(self): | |
one line | ||
two line""") | ||
|
||
|
||
|
||
# Test the Charset class | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.