From b86d17c3607aad237ace02710a6cae924c324116 Mon Sep 17 00:00:00 2001 From: Val Neekman Date: Sat, 16 Aug 2014 22:02:32 -0400 Subject: Added console, pypy and some reorg --- test.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'test.py') 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") -- cgit v1.2.1