Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(5)

Side by Side Diff: Lib/test/test_email/test_message.py

Issue 10839: email module should not allow some header field repetitions
Patch Set: Created 7 years, 10 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Lib/email/policy.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 import unittest
2 from email import policy
3 from test.test_email import TestEmailBase
4
5
6 class Test(TestEmailBase):
7
8 policy = policy.default
9
10 def test_error_on_setitem_if_max_count_exceeded(self):
11 m = self._str_msg("")
12 m['To'] = 'abc@xyz'
13 with self.assertRaises(ValueError):
14 m['To'] = 'xyz@abc'
15
16
17 if __name__ == '__main__':
18 unittest.main()
OLDNEW
« no previous file with comments | « Lib/email/policy.py ('k') | no next file » | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+