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
026ba312
Commit
026ba312
authored
May 29, 2012
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#10839: add new test file that was omitted from checkin
parent
abfc3749
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
Lib/test/test_email/test_message.py
Lib/test/test_email/test_message.py
+18
-0
No files found.
Lib/test/test_email/test_message.py
0 → 100644
View file @
026ba312
import
unittest
from
email
import
policy
from
test.test_email
import
TestEmailBase
class
Test
(
TestEmailBase
):
policy
=
policy
.
default
def
test_error_on_setitem_if_max_count_exceeded
(
self
):
m
=
self
.
_str_msg
(
""
)
m
[
'To'
]
=
'abc@xyz'
with
self
.
assertRaises
(
ValueError
):
m
[
'To'
]
=
'xyz@abc'
if
__name__
==
'__main__'
:
unittest
.
main
()
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