blob: 7222adf3f9b7a46d31ae5ba6c4b3fadd26dd6739 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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"
|