Commit b7365c8f authored by Barry Warsaw's avatar Barry Warsaw

test_parseaddr_empty(): New test for assuring that

Utils.parseaddr('<>') -- i.e. on an empty address, returns the empty
string.  Built on rfc822, this used to return None.
parent 9bd3601f
......@@ -952,6 +952,10 @@ class TestMiscellaneous(unittest.TestCase):
def test_parsedate_none(self):
self.assertEqual(Utils.parsedate(''), None)
def test_parseaddr_empty(self):
self.assertEqual(Utils.parseaddr('<>'), ('', ''))
self.assertEqual(Utils.dump_address_pair(Utils.parseaddr('<>')), '')
# Test the iterator/generators
......
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