Beispiel #1
0
 def test_set_params_is_equivalent_to_calling_set_param_multiple_times(self):
     s = QueryString('')
     assert (s.set_params([('abc', '123'), ('def', '456')]) ==
             s.set_param('abc', '123').set_param('def', '456'))
Beispiel #2
0
 def test_set_param_replaces_existing_parameter_names(self):
     s = QueryString('abc=123&abc=456')
     assert s.set_param('abc', '789') == 'abc=789'