summaryrefslogtreecommitdiff
path: root/Lib/test/test_rfc822.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_rfc822.py')
-rw-r--r--Lib/test/test_rfc822.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_rfc822.py b/Lib/test/test_rfc822.py
index cc6e27ba3c..0244f0d818 100644
--- a/Lib/test/test_rfc822.py
+++ b/Lib/test/test_rfc822.py
@@ -185,6 +185,14 @@ class MessageTestCase(unittest.TestCase):
self.check('To: User J. Person <person@dom.ain>\n\n',
[('User J. Person', 'person@dom.ain')])
+ # This takes to long to add to the test suite
+## def test_an_excrutiatingly_long_address_field(self):
+## OBSCENELY_LONG_HEADER_MULTIPLIER = 10000
+## oneaddr = ('Person' * 10) + '@' + ('.'.join(['dom']*10)) + '.com'
+## addr = ', '.join([oneaddr] * OBSCENELY_LONG_HEADER_MULTIPLIER)
+## lst = rfc822.AddrlistClass(addr).getaddrlist()
+## self.assertEqual(len(lst), OBSCENELY_LONG_HEADER_MULTIPLIER)
+
def test_main():
test_support.run_unittest(MessageTestCase)