aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/test_helpers.py
diff options
context:
space:
mode:
Diffstat (limited to '_pytest/test_helpers.py')
-rw-r--r--_pytest/test_helpers.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/_pytest/test_helpers.py b/_pytest/test_helpers.py
new file mode 100644
index 0000000..ee6df35
--- /dev/null
+++ b/_pytest/test_helpers.py
@@ -0,0 +1,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