aboutsummaryrefslogblamecommitdiffstats
path: root/tests/test_get_cookies.py
blob: 1e68f58813026a83f11bd51755f2cedf3a92769f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                       
from slack.util import get_cookies


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"