diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2011-10-05 16:32:02 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2011-10-05 16:32:02 (GMT) |
commit | 1b7da519b09d8885272d323af982d36675419075 (patch) | |
tree | 04b642a7c9dcd000d51a7e906f3b5de0aeafd620 /Lib/test | |
parent | ad87fa671939609f9ff7c0d489f09a8c86586fbd (diff) | |
download | cpython-1b7da519b09d8885272d323af982d36675419075.zip cpython-1b7da519b09d8885272d323af982d36675419075.tar.gz cpython-1b7da519b09d8885272d323af982d36675419075.tar.bz2 |
Issue13104 - Fix urllib.request.thishost() utility function.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_urllib.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py index c6dae17..8055dc2 100644 --- a/Lib/test/test_urllib.py +++ b/Lib/test/test_urllib.py @@ -1058,6 +1058,10 @@ class Utility_Tests(unittest.TestCase): self.assertEqual(('user', 'a\vb'),urllib.parse.splitpasswd('user:a\vb')) self.assertEqual(('user', 'a:b'),urllib.parse.splitpasswd('user:a:b')) + def test_thishost(self): + """Test the urllib.request.thishost utility function returns a tuple""" + self.assertIsInstance(urllib.request.thishost(), tuple) + class URLopener_Tests(unittest.TestCase): """Testcase to test the open method of URLopener class.""" |