Lines Matching refs:urlparse

86         result = urllib.parse.urlparse(url)
98 result3 = urllib.parse.urlparse(result.geturl())
240 self.assertEqual(urllib.parse.urlunparse(urllib.parse.urlparse(u)), u)
292 self.assertEqual(urllib.parse.urlparse('mailto:1337@example.org'),
489 urlparsed = urllib.parse.urlparse(url)
500 self.assertRaises(ValueError, urllib.parse.urlparse, invalid_url)
630 for parse in (urllib.parse.urlsplit, urllib.parse.urlparse):
658 p = urllib.parse.urlparse(uri)
676 p = urllib.parse.urlparse(uri)
686 self.assertEqual(urllib.parse.urlparse("http://example.com?blahblah=/foo"),
688 self.assertEqual(urllib.parse.urlparse(b"http://example.com?blahblah=/foo"),
696 self.assertEqual(urllib.parse.urlparse("path"),
698 self.assertEqual(urllib.parse.urlparse("//www.python.org:80"),
700 self.assertEqual(urllib.parse.urlparse("http://www.python.org:80"),
703 self.assertEqual(urllib.parse.urlparse(b"path"),
705 self.assertEqual(urllib.parse.urlparse(b"//www.python.org:80"),
707 self.assertEqual(urllib.parse.urlparse(b"http://www.python.org:80"),
712 self.assertEqual(urllib.parse.urlparse("path:80"),
714 self.assertEqual(urllib.parse.urlparse("http:"),('http','','','','',''))
715 self.assertEqual(urllib.parse.urlparse("https:"),('https','','','','',''))
716 self.assertEqual(urllib.parse.urlparse("http://www.python.org:80"),
719 self.assertEqual(urllib.parse.urlparse(b"path:80"),
721 self.assertEqual(urllib.parse.urlparse(b"http:"),(b'http',b'',b'',b'',b'',b''))
722 self.assertEqual(urllib.parse.urlparse(b"https:"),(b'https',b'',b'',b'',b'',b''))
723 self.assertEqual(urllib.parse.urlparse(b"http://www.python.org:80"),
732 self.assertEqual(urllib.parse.urlparse("s3://foo.com/stuff"),
734 self.assertEqual(urllib.parse.urlparse("x-newscheme://foo.com/stuff"),
736 self.assertEqual(urllib.parse.urlparse("x-newscheme://foo.com/stuff?query#fragment"),
738 self.assertEqual(urllib.parse.urlparse("x-newscheme://foo.com/stuff?query"),
742 self.assertEqual(urllib.parse.urlparse(b"s3://foo.com/stuff"),
744 self.assertEqual(urllib.parse.urlparse(b"x-newscheme://foo.com/stuff"),
746 self.assertEqual(urllib.parse.urlparse(b"x-newscheme://foo.com/stuff?query#fragment"),
748 self.assertEqual(urllib.parse.urlparse(b"x-newscheme://foo.com/stuff?query"),
753 for func in (urllib.parse.urlparse, urllib.parse.urlsplit):
781 for func in (urllib.parse.urlparse, urllib.parse.urlsplit):
803 urllib.parse.urlparse("www.python.org", b"http")
805 urllib.parse.urlparse(b"www.python.org", "http")
941 p1 = urllib.parse.urlparse('tel:+31-641044153')
944 p2 = urllib.parse.urlparse('tel:+31641044153')
949 p1 = urllib.parse.urlparse('tel:123-4;phone-context=+1-650-516')
954 p1 = urllib.parse.urlparse('tel:+1-201-555-0123')
959 p1 = urllib.parse.urlparse('tel:7042;phone-context=example.com')
964 p1 = urllib.parse.urlparse('tel:863-1234;phone-context=+1-914-555')