diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2016-06-02 18:23:54 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2016-06-02 18:23:54 +0800 |
commit | 1e8b59243f8a31a8d65e5ae9e7b76c733981e7fe (patch) | |
tree | af2563501de824f8fe5bc1169c9262623ce7ab69 /test | |
parent | 9a4aec8b7ea2c0863bc03ba8f3d3e69a61e77c80 (diff) | |
parent | c88270271e65be591f7e194b71728256644b8684 (diff) |
Merge pull request #9669 from bzc6p/master
Added sanitization support for Hungarian letters Ő and Ű
Diffstat (limited to 'test')
-rw-r--r-- | test/test_utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_utils.py b/test/test_utils.py index a697232a8..feef80465 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -157,8 +157,8 @@ class TestUtil(unittest.TestCase): self.assertTrue(sanitize_filename(':', restricted=True) != '') self.assertEqual(sanitize_filename( - 'ÂÃÄÀÁÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØŒÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøœùúûüýþÿ', restricted=True), - 'AAAAAAAECEEEEIIIIDNOOOOOOOEUUUUYPssaaaaaaaeceeeeiiiionoooooooeuuuuypy') + 'ÂÃÄÀÁÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖŐØŒÙÚÛÜŰÝÞßàáâãäåæçèéêëìíîïðñòóôõöőøœùúûüűýþÿ', restricted=True), + 'AAAAAAAECEEEEIIIIDNOOOOOOOOEUUUUUYPssaaaaaaaeceeeeiiiionooooooooeuuuuuypy') def test_sanitize_ids(self): self.assertEqual(sanitize_filename('_n_cd26wFpw', is_id=True), '_n_cd26wFpw') |