Example #1
0
 def test_get_root_url_strips_fragments(self):
     result = mapper_cli.get_root_url(
         'http://www.example.com:80/hello#title1'
     )
     self.assertEqual(result, 'http://www.example.com:80')
Example #2
0
 def test_get_root_url(self):
     result = mapper_cli.get_root_url(
         'http://www.example.com:80/hello?param=value'
     )
     self.assertEqual(result, 'http://www.example.com:80')