• Home
  • Raw
  • Download

Lines Matching refs:urlparse

74         result = urllib.parse.urlparse(url)
86 result3 = urllib.parse.urlparse(result.geturl())
228 self.assertEqual(urllib.parse.urlunparse(urllib.parse.urlparse(u)), u)
280 self.assertEqual(urllib.parse.urlparse('mailto:1337@example.org'),
477 urlparsed = urllib.parse.urlparse(url)
488 self.assertRaises(ValueError, urllib.parse.urlparse, invalid_url)
655 for parse in (urllib.parse.urlsplit, urllib.parse.urlparse):
683 p = urllib.parse.urlparse(uri)
701 p = urllib.parse.urlparse(uri)
711 self.assertEqual(urllib.parse.urlparse("http://example.com?blahblah=/foo"),
713 self.assertEqual(urllib.parse.urlparse(b"http://example.com?blahblah=/foo"),
721 self.assertEqual(urllib.parse.urlparse("path"),
723 self.assertEqual(urllib.parse.urlparse("//www.python.org:80"),
725 self.assertEqual(urllib.parse.urlparse("http://www.python.org:80"),
728 self.assertEqual(urllib.parse.urlparse(b"path"),
730 self.assertEqual(urllib.parse.urlparse(b"//www.python.org:80"),
732 self.assertEqual(urllib.parse.urlparse(b"http://www.python.org:80"),
737 self.assertEqual(urllib.parse.urlparse("http:80"), ('http','','80','','',''))
738 self.assertEqual(urllib.parse.urlparse("https:80"), ('https','','80','','',''))
739 self.assertEqual(urllib.parse.urlparse("path:80"), ('path','','80','','',''))
740 self.assertEqual(urllib.parse.urlparse("http:"),('http','','','','',''))
741 self.assertEqual(urllib.parse.urlparse("https:"),('https','','','','',''))
742 self.assertEqual(urllib.parse.urlparse("http://www.python.org:80"),
745 self.assertEqual(urllib.parse.urlparse(b"http:80"), (b'http',b'',b'80',b'',b'',b''))
746 self.assertEqual(urllib.parse.urlparse(b"https:80"), (b'https',b'',b'80',b'',b'',b''))
747 self.assertEqual(urllib.parse.urlparse(b"path:80"), (b'path',b'',b'80',b'',b'',b''))
748 self.assertEqual(urllib.parse.urlparse(b"http:"),(b'http',b'',b'',b'',b'',b''))
749 self.assertEqual(urllib.parse.urlparse(b"https:"),(b'https',b'',b'',b'',b'',b''))
750 self.assertEqual(urllib.parse.urlparse(b"http://www.python.org:80"),
759 self.assertEqual(urllib.parse.urlparse("s3://foo.com/stuff"),
761 self.assertEqual(urllib.parse.urlparse("x-newscheme://foo.com/stuff"),
763 self.assertEqual(urllib.parse.urlparse("x-newscheme://foo.com/stuff?query#fragment"),
765 self.assertEqual(urllib.parse.urlparse("x-newscheme://foo.com/stuff?query"),
769 self.assertEqual(urllib.parse.urlparse(b"s3://foo.com/stuff"),
771 self.assertEqual(urllib.parse.urlparse(b"x-newscheme://foo.com/stuff"),
773 self.assertEqual(urllib.parse.urlparse(b"x-newscheme://foo.com/stuff?query#fragment"),
775 self.assertEqual(urllib.parse.urlparse(b"x-newscheme://foo.com/stuff?query"),
780 for func in (urllib.parse.urlparse, urllib.parse.urlsplit):
808 for func in (urllib.parse.urlparse, urllib.parse.urlsplit):
830 urllib.parse.urlparse("www.python.org", b"http")
832 urllib.parse.urlparse(b"www.python.org", "http")
1008 p1 = urllib.parse.urlparse('tel:+31-641044153')
1011 p2 = urllib.parse.urlparse('tel:+31641044153')
1017 p1 = urllib.parse.urlparse('http://Server=sde; Service=sde:oracle')
1026 p1 = urllib.parse.urlparse('tel:123-4;phone-context=+1-650-516')
1031 p1 = urllib.parse.urlparse('tel:+1-201-555-0123')
1036 p1 = urllib.parse.urlparse('tel:7042;phone-context=example.com')
1041 p1 = urllib.parse.urlparse('tel:863-1234;phone-context=+1-914-555')