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
add3b87e
Commit
add3b87e
authored
Oct 09, 2004
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test_missing_start_boundary(): A test for SF bug # 1030941.
parent
3fca0e71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
Lib/email/test/test_email.py
Lib/email/test/test_email.py
+15
-0
No files found.
Lib/email/test/test_email.py
View file @
add3b87e
...
@@ -1420,6 +1420,21 @@ counter to RFC 2822, there's no separating newline here
...
@@ -1420,6 +1420,21 @@ counter to RFC 2822, there's no separating newline here
unless
(
isinstance
(
msg
.
defects
[
1
],
unless
(
isinstance
(
msg
.
defects
[
1
],
Errors
.
MultipartInvariantViolationDefect
))
Errors
.
MultipartInvariantViolationDefect
))
def
test_missing_start_boundary
(
self
):
outer
=
self
.
_msgobj
(
'msg_42.txt'
)
# The message structure is:
#
# multipart/mixed
# text/plain
# message/rfc822
# multipart/mixed [*]
#
# [*] This message is missing its start boundary
bad
=
outer
.
get_payload
(
1
).
get_payload
(
0
)
self
.
assertEqual
(
len
(
bad
.
defects
),
1
)
self
.
failUnless
(
isinstance
(
bad
.
defects
[
0
],
Errors
.
StartBoundaryNotFoundDefect
))
# Test RFC 2047 header encoding and decoding
# Test RFC 2047 header encoding and decoding
...
...
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