Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
82ffabdf
Commit
82ffabdf
authored
Jun 03, 2012
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#2658: Add test for issue fixed by fix for #1079.
parent
f2094079
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
Lib/test/test_email/test_email.py
Lib/test/test_email/test_email.py
+10
-0
No files found.
Lib/test/test_email/test_email.py
View file @
82ffabdf
...
...
@@ -2104,6 +2104,16 @@ Re: =?mac-iceland?q?r=8Aksm=9Arg=8Cs?= baz foo bar =?mac-iceland?q?r=8Aksm?=
self
.
assertEqual
(
make_header
(
decode_header
(
s
)).
encode
(),
s
.
lower
())
self
.
assertEqual
(
str
(
make_header
(
decode_header
(
s
))),
'(a b)'
)
def
test_multiline_header
(
self
):
s
=
'=?windows-1252?q?=22M=FCller_T=22?=
\
r
\
n
<T.Mueller@xxx.com>'
self
.
assertEqual
(
decode_header
(
s
),
[(
b'"M
\
xfc
ller T"'
,
'windows-1252'
),
(
b'<T.Mueller@xxx.com>'
,
None
)])
self
.
assertEqual
(
make_header
(
decode_header
(
s
)).
encode
(),
''
.
join
(
s
.
splitlines
()))
self
.
assertEqual
(
str
(
make_header
(
decode_header
(
s
))),
'"Müller T" <T.Mueller@xxx.com>'
)
# Test the MIMEMessage class
class
TestMIMEMessage
(
TestEmailBase
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment