diff options
author | Val Neekman <val@neekware.com> | 2014-08-16 22:02:32 -0400 |
---|---|---|
committer | Val Neekman <val@neekware.com> | 2014-08-16 22:02:32 -0400 |
commit | b86d17c3607aad237ace02710a6cae924c324116 (patch) | |
tree | 411918fa12c2e9e5070189e9c37a4885dc47736a /test.py | |
parent | 152827ae8f84e9b89db21bde18c052467bbaf293 (diff) | |
download | python-slugify-b86d17c3607aad237ace02710a6cae924c324116.tar.gz |
Added console, pypy and some reorg0.0.8
Diffstat (limited to 'test.py')
-rw-r--r-- | test.py | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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") |