Commits

Anonymous committed 4f5b156

Issue#15 fixed, thansk to Michael Samoylov

Comments (0)

Files changed (2)

pytils/test/test_translit.py

         self.ckSlug(u"Проверка\x0aсвязи 2", 'proverka-svyazi-2')
         self.ckSlug(u"Проверка\201связи 3", 'proverkasvyazi-3')
 
+    def testSlugifyIssue15(self):
+        """
+        Unit-test for testing that bug#15 fixed
+        """
+        self.ckSlug(u"World of Warcraft", "world-of-warcraft")
+
+
 if __name__ == '__main__':
     unittest.main()
         (u"q", u"q"),
         (u"y", u"y"),
         (u"x", u"x"),
-        (u"C", u"C"),
-        (u"Q", u"Q"),
-        (u"Y", u"Y"),
-        (u"X", u"X"),
+        (u"w", u"w"),
         (u"1", u"1"),
         (u"2", u"2"),
         (u"3", u"3"),
     """
     utils.check_type('in_string', basestring)
     try:
-        u_in_string = unicode(in_string)
+        u_in_string = unicode(in_string).lower()
     except UnicodeDecodeError:
         raise ValueError("We expects when in_string is str type," + \
                          "it is an ascii, but now it isn't. Use unicode " + \