summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test_pies.py7
-rw-r--r--tox.ini12
2 files changed, 19 insertions, 0 deletions
diff --git a/test_pies.py b/test_pies.py
new file mode 100644
index 0000000..5a52b64
--- /dev/null
+++ b/test_pies.py
@@ -0,0 +1,7 @@
+from __future__ import absolute_import, division, print_function, unicode_literals
+
+from pies.overrides import *
+
+
+def test_u():
+ assert u('Bj\xf6rk Gu\xf0mundsd\xf3ttir') == 'Bj\xf6rk Gu\xf0mundsd\xf3ttir'
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..dac85a3
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,12 @@
+# Tox (http://tox.testrun.org/) is a tool for running tests
+# in multiple virtualenvs. This configuration file will run the
+# test suite on all supported python versions. To use it, "pip install tox"
+# and then run "tox" from this directory.
+
+[tox]
+envlist = py26, py27, py32, py33, pypy
+
+[testenv]
+commands = py.test {posargs}
+deps =
+ pytest