]> granicus.if.org Git - python/commitdiff
SF feature #618024, urlparse fails on imap://
authorNeal Norwitz <nnorwitz@gmail.com>
Mon, 6 Jan 2003 06:58:31 +0000 (06:58 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Mon, 6 Jan 2003 06:58:31 +0000 (06:58 +0000)
Lib/test/test_urlparse.py

index 7d7f4588f6c96b7bc6c4226913a8d37353b19617..a9d55d3737d93d6b7ddd7c05d027fc01840b3778 100644 (file)
@@ -25,6 +25,9 @@ class UrlParseTestCase(unittest.TestCase):
             ('file:///tmp/junk.txt',
              ('file', '', '/tmp/junk.txt', '', '', ''),
              ('file', '', '/tmp/junk.txt', '', '')),
+            ('imap://mail.python.org/mbox1',
+             ('imap', 'mail.python.org', '/mbox1', '', '', ''),
+             ('imap', 'mail.python.org', '/mbox1', '', '')),
             ]:
             result = urlparse.urlparse(url)
             self.assertEqual(result, parsed)