Example #1
0
 def test_preserve_nice_query(self):
     url = "https://dl2.tlauncher.org/f.php?f=files%2FTLauncher-2.69.zip"
     expected = url
     self.assertEqual(strip_query(url), expected)
Example #2
0
 def test_preserve_auth(self):
     url = "https://*****:*****@example.com/"
     expected = url
     self.assertEqual(strip_query(url), expected)
Example #3
0
 def test_strip_query(self):
     url = "https://d11yldzmag5yn.cloudfront.net/prod/3.5.372466.0322/zoom_x86_64.tar.xz?_x_zm_rtaid=muDd1uOqSZ-xUScZF698QQ.1585134521724.21e5ab14908b2121f5ed53882df91cb9&_x_zm_rhtaid=732"  # noqa: E501
     expected = "https://d11yldzmag5yn.cloudfront.net/prod/3.5.372466.0322/zoom_x86_64.tar.xz"
     self.assertEqual(strip_query(url), expected)