diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_get_cookies.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_get_cookies.py b/tests/test_get_cookies.py index 1e68f58..7222adf 100644 --- a/tests/test_get_cookies.py +++ b/tests/test_get_cookies.py @@ -1,6 +1,16 @@ 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" |