summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorVal Neekman <val@neekware.com>2014-08-16 22:02:32 -0400
committerVal Neekman <val@neekware.com>2014-08-16 22:02:32 -0400
commitb86d17c3607aad237ace02710a6cae924c324116 (patch)
tree411918fa12c2e9e5070189e9c37a4885dc47736a /test.py
parent152827ae8f84e9b89db21bde18c052467bbaf293 (diff)
downloadpython-slugify-b86d17c3607aad237ace02710a6cae924c324116.tar.gz
Added console, pypy and some reorg0.0.8
Diffstat (limited to 'test.py')
-rw-r--r--test.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/test.py b/test.py
index 7fb000e..bf51653 100644
--- a/test.py
+++ b/test.py
@@ -3,18 +3,23 @@
import unittest
from slugify import slugify
+
class TestSequenceFunctions(unittest.TestCase):
def test_manager(self):
-
+
txt = "This is a test ---"
r = slugify(txt)
self.assertEqual(r, "this-is-a-test")
-
+
txt = "This -- is a ## test ---"
r = slugify(txt)
self.assertEqual(r, "this-is-a-test")
-
+
+ txt = '影師嗎'
+ r = slugify(txt)
+ self.assertEqual(r, "ying-shi-ma")
+
txt = 'C\'est déjà l\'été.'
r = slugify(txt)
self.assertEqual(r, "cest-deja-lete")