Ejemplo n.º 1
0
 def test_del_param_can_remove_valueless_parameters(self):
     valueless = QueryString(u'abc=123&def&abc=456')
     empty_valued = QueryString(u'abc=123&def=&abc=456')
     assert valueless.del_param(u'def') == u'abc=123&abc=456'
     assert empty_valued.del_param(u'def') == u'abc=123&abc=456'
Ejemplo n.º 2
0
 def test_del_param_can_remove_anonymous_parameters(self):
     s = QueryString(u'abc=123&=456&def=789')
     assert s.del_param(u'') == u'abc=123&def=789'
Ejemplo n.º 3
0
 def test_del_param_can_remove_anonymous_parameters(self):
     s = QueryString('abc=123&=456&def=789')
     assert s.del_param('') == 'abc=123&def=789'
Ejemplo n.º 4
0
 def test_del_param_removes_all_instances_of_the_parameter_from_the_QueryString(self):
     s = QueryString(u'abc=123&def=456&abc=789')
     assert s.del_param(u'abc') == u'def=456'
     assert s.del_param(u'def') == u'abc=123&abc=789'
Ejemplo n.º 5
0
 def test_del_param_can_remove_valueless_parameters(self):
     valueless = QueryString('abc=123&def&abc=456')
     empty_valued = QueryString('abc=123&def=&abc=456')
     assert valueless.del_param('def') == 'abc=123&abc=456'
     assert empty_valued.del_param('def') == 'abc=123&abc=456'
Ejemplo n.º 6
0
 def test_del_param_removes_all_instances_of_the_parameter_from_the_QueryString(self):
     s = QueryString('abc=123&def=456&abc=789')
     assert s.del_param('abc') == 'def=456'
     assert s.del_param('def') == 'abc=123&abc=789'
Ejemplo n.º 7
0
 def test_del_param_removes_all_instances_of_the_parameter_from_the_QueryString(self):
     s = QueryString("abc=123&def=456&abc=789")
     assert s.del_param("abc") == "def=456"
     assert s.del_param("def") == "abc=123&abc=789"
Ejemplo n.º 8
0
 def test_del_param_can_remove_anonymous_parameters(self):
     s = QueryString("abc=123&=456&def=789")
     assert s.del_param("") == "abc=123&def=789"
Ejemplo n.º 9
0
 def test_del_param_can_remove_valueless_parameters(self):
     valueless = QueryString("abc=123&def&abc=456")
     empty_valued = QueryString("abc=123&def=&abc=456")
     assert valueless.del_param("def") == "abc=123&abc=456"
     assert empty_valued.del_param("def") == "abc=123&abc=456"