mirror of
https://github.com/python/cpython.git
synced 2025-09-17 22:20:23 +00:00
#10839: add new test file that was omitted from checkin
This commit is contained in:
parent
abfc37491c
commit
026ba312d4
1 changed files with 18 additions and 0 deletions
18
Lib/test/test_email/test_message.py
Normal file
18
Lib/test/test_email/test_message.py
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
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()
|
Loading…
Add table
Add a link
Reference in a new issue