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
4d0f808c
Commit
4d0f808c
authored
Jul 25, 2013
by
R David Murray
Browse files
Options
Browse Files
Download
Plain Diff
#18503: small cleanups in test_email.
Patch by Vajrasky Kok.
parents
c985d08e
271ade87
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Lib/test/test_email/test_email.py
Lib/test/test_email/test_email.py
+2
-2
No files found.
Lib/test/test_email/test_email.py
View file @
4d0f808c
...
...
@@ -388,6 +388,7 @@ class TestMessageAPI(TestEmailBase):
def
test_del_param_on_nonexistent_header
(
self
):
msg
=
Message
()
# Deleting param on empty msg should not raise exception.
msg
.
del_param
(
'filename'
,
'content-disposition'
)
def
test_del_nonexistent_param
(
self
):
...
...
@@ -395,7 +396,7 @@ class TestMessageAPI(TestEmailBase):
msg
.
add_header
(
'Content-Type'
,
'text/plain'
,
charset
=
'utf-8'
)
existing_header
=
msg
[
'Content-Type'
]
msg
.
del_param
(
'foobar'
,
header
=
'Content-Type'
)
self
.
assertEqual
(
msg
[
'Content-Type'
],
'text/plain; charset="utf-8"'
)
self
.
assertEqual
(
msg
[
'Content-Type'
],
existing_header
)
def
test_set_type
(
self
):
eq
=
self
.
assertEqual
...
...
@@ -2265,7 +2266,6 @@ class TestMIMEMessage(TestEmailBase):
eq
(
subpart
[
'subject'
],
subject
)
def
test_bad_multipart
(
self
):
eq
=
self
.
assertEqual
msg1
=
Message
()
msg1
[
'Subject'
]
=
'subpart 1'
msg2
=
Message
()
...
...
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