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
28ffcb6f
Commit
28ffcb6f
authored
Mar 06, 2003
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test_rfc2047_multiline(): Test case for SF bug #640110.
parent
671c3e63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
Lib/email/test/test_email.py
Lib/email/test/test_email.py
+14
-0
No files found.
Lib/email/test/test_email.py
View file @
28ffcb6f
...
...
@@ -1193,6 +1193,20 @@ class TestRFC2047(unittest.TestCase):
eq
(
Utils
.
encode
(
s2
,
charset
=
'iso-8859-2'
,
encoding
=
'b'
),
'=?iso-8859-2?b?dSB1bmRlcnN0YW5kIHRoZSBleGFtcGxlLg==?='
)
def
test_rfc2047_multiline
(
self
):
eq
=
self
.
assertEqual
s
=
"""Re: =?mac-iceland?q?r=8Aksm=9Arg=8Cs?= baz
foo bar =?mac-iceland?q?r=8Aksm=9Arg=8Cs?="""
dh
=
decode_header
(
s
)
eq
(
dh
,
[
(
'Re:'
,
None
),
(
'r
\
x8a
ksm
\
x9a
rg
\
x8c
s'
,
'mac-iceland'
),
(
'baz foo bar'
,
None
),
(
'r
\
x8a
ksm
\
x9a
rg
\
x8c
s'
,
'mac-iceland'
)])
eq
(
str
(
make_header
(
dh
)),
"""Re: =?mac-iceland?q?r=8Aksm=9Arg=8Cs?= baz foo bar
=?mac-iceland?q?r=8Aksm=9Arg=8Cs?="""
)
# Test the MIMEMessage class
...
...
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