Lines Matching refs:safe
387 # above attempts at injection within the url _path_ safe.
413 # above attempts at injection within the url _path_ safe.
915 # Test '/' is default value for 'safe' parameter
919 # Test setting 'safe' parameter does what it should do
921 result = urllib.parse.quote(quote_by_default, safe=quote_by_default)
925 safe=quote_by_default)
930 result = urllib.parse.quote(quote_by_default, safe=b"<>")
935 result = urllib.parse.quote("a\xfcb", encoding="latin-1", safe="\xfc")
936 expect = urllib.parse.quote("a\xfcb", encoding="latin-1", safe="")
941 result = urllib.parse.quote("a\xfcb", encoding="latin-1", safe=b"\xfc")
942 expect = urllib.parse.quote("a\xfcb", encoding="latin-1", safe="")
1002 # Test with safe bytes
1448 # Send '$' (\x24) as safe character
1452 result = urllib.parse.urlencode(given, safe=":$")
1457 result = urllib.parse.urlencode(given, doseq=True, safe=":$")
1464 result = urllib.parse.urlencode(given, True, safe=":$")
1470 result = urllib.parse.urlencode(given, safe=":$",
1477 result = urllib.parse.urlencode(given, doseq=True, safe=":$",
1482 result = urllib.parse.urlencode(given, True, safe=":$",
1585 # test the safe characters are not quoted by urlopen