示例#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'
示例#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'
 def test_del_param_can_remove_anonymous_parameters(self):
     s = QueryString('abc=123&=456&def=789')
     assert s.del_param('') == 'abc=123&def=789'
示例#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'
 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'
 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'
示例#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"
示例#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"
示例#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"