Lines Matching refs:splitnport
1197 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))
1303 urllib.parse.splitnport('')