Home
last modified time | relevance | path

Searched refs:splitnport (Results 1 – 2 of 2) sorted by relevance

/third_party/python/Lib/test/
Dtest_urlparse.py1197 splitnport = urllib.parse._splitnport
1198 self.assertEqual(splitnport('parrot:88'), ('parrot', 88))
1199 self.assertEqual(splitnport('parrot'), ('parrot', -1))
1200 self.assertEqual(splitnport('parrot', 55), ('parrot', 55))
1201 self.assertEqual(splitnport('parrot:'), ('parrot', -1))
1202 self.assertEqual(splitnport('parrot:', 55), ('parrot', 55))
1203 self.assertEqual(splitnport('127.0.0.1'), ('127.0.0.1', -1))
1204 self.assertEqual(splitnport('127.0.0.1', 55), ('127.0.0.1', 55))
1205 self.assertEqual(splitnport('parrot:cheese'), ('parrot', None))
1206 self.assertEqual(splitnport('parrot:cheese', 55), ('parrot', None))
[all …]
/third_party/python/Lib/urllib/
Dparse.py1116 def splitnport(host, defport=-1): function