nixpkgs/pkgs/development/python-modules/awesome-slugify/slugify_filename_test.patch
2017-09-18 23:21:24 +02:00

13 lines
524 B
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

diff --git i/slugify/tests.py w/slugify/tests.py
index 4c9fa1c..3e14328 100644
--- i/slugify/tests.py
+++ w/slugify/tests.py
@@ -57,7 +57,7 @@ class PredefinedSlugifyTestCase(unittest.TestCase):
self.assertEqual(slugify_url('The Über article'), 'uber-article')
def test_slugify_filename(self):
- self.assertEqual(slugify_filename(u'Дrаft №2.txt'), u'Draft_2.txt')
+ self.assertEqual(slugify_filename(u'Дrаft №2.txt'), u'Draft_No._2.txt')
class ToLowerTestCase(unittest.TestCase):