mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-23 06:35:51 -07:00
add test for socks5h like other socks protocols
This commit is contained in:
parent
596312c244
commit
3fedb4a581
1 changed files with 2 additions and 0 deletions
|
@ -113,6 +113,8 @@ class TestSocks(unittest.TestCase):
|
||||||
def test_socks5(self):
|
def test_socks5(self):
|
||||||
self.assertTrue(isinstance(self._get_ip('socks5'), compat_str))
|
self.assertTrue(isinstance(self._get_ip('socks5'), compat_str))
|
||||||
|
|
||||||
|
def test_socks5h(self):
|
||||||
|
self.assertTrue(isinstance(self._get_ip('socks5h'), compat_str))
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue