示例#1
0
 def test_equals(self):
     self.assertEqual(strip_url_params('www.codewars.com?a=1&b=2&a=1&b=3'),
                      'www.codewars.com?a=1&b=2')
示例#2
0
 def test_equals_5(self):
     self.assertEqual(strip_url_params('www.codewars.com', ['b']),
                      'www.codewars.com')
示例#3
0
 def test_equals_4(self):
     self.assertEqual(
         strip_url_params('www.codewars.com?a=1&b=2&a=2', ['b']),
         'www.codewars.com?a=1')
 def test_equals(self):
     self.assertEqual(strip_url_params('www.codewars.com?a=1&b=2&a=1&b=3'),
                      'www.codewars.com?a=1&b=2')
 def test_equals_5(self):
     self.assertEqual(strip_url_params('www.codewars.com', ['b']),
                      'www.codewars.com')
 def test_equals_4(self):
     self.assertEqual(strip_url_params('www.codewars.com?a=1&b=2&a=2',
                                       ['b']), 'www.codewars.com?a=1')