aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/test_helpers.py
blob: ee6df353ae85b547246b31b776f1e641cba5346b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# -*- coding: utf-8 -*-

from __future__ import print_function, unicode_literals

from wee_slack import url_encode_if_not_encoded


def test_should_url_encode_if_not_encoded():
    value = "="
    encoded = url_encode_if_not_encoded(value)
    assert encoded == "%3D"


def test_should_not_url_encode_if_encoded():
    value = "%3D"
    encoded = url_encode_if_not_encoded(value)
    assert encoded == value