Commit 026ba312 authored by R David Murray's avatar R David Murray

#10839: add new test file that was omitted from checkin

parent abfc3749
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()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment