mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
test_getaddresses_nasty(): A test for mimelib SF bug # 697641.
This commit is contained in:
parent
fa348c876f
commit
ab75840cd0
1 changed files with 10 additions and 0 deletions
|
@ -1926,6 +1926,16 @@ class TestMiscellaneous(unittest.TestCase):
|
|||
[('Al Person', 'aperson@dom.ain'),
|
||||
('Bud Person', 'bperson@dom.ain')])
|
||||
|
||||
def test_getaddresses_nasty(self):
|
||||
eq = self.assertEqual
|
||||
eq(Utils.getaddresses(['foo: ;']), [('', '')])
|
||||
eq(Utils.getaddresses(
|
||||
['[]*-- =~$']),
|
||||
[('', ''), ('', ''), ('', '*--')])
|
||||
eq(Utils.getaddresses(
|
||||
['foo: ;', '"Jason R. Mastaler" <jason@dom.ain>']),
|
||||
[('', ''), ('Jason R. Mastaler', 'jason@dom.ain')])
|
||||
|
||||
def test_utils_quote_unquote(self):
|
||||
eq = self.assertEqual
|
||||
msg = Message()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue