blob: 7222adf3f9b7a46d31ae5ba6c4b3fadd26dd6739 (
plain) (
tree)
|
|
from slack.util import get_cookies
def test_get_cookies_without_key_value_encoded():
cookie = get_cookies("a%2Bb")
assert cookie == "d=a%2Bb"
def test_get_cookies_without_key_value_not_encoded():
cookie = get_cookies("a+b")
assert cookie == "d=a%2Bb"
def test_get_cookies_multiple_keys_value_encoded():
cookie = get_cookies("d=a%2Bb ; d-s=1")
assert cookie == "d=a%2Bb; d-s=1"
def test_get_cookies_multiple_keys_value_not_encoded():
cookie = get_cookies("d=a+b ; d-s=1")
assert cookie == "d=a%2Bb; d-s=1"
|