aboutsummaryrefslogtreecommitdiff
path: root/test/test_utils.py
diff options
context:
space:
mode:
authorAdam Thalhammer <s3544305@student.rmit.edu.au>2016-05-02 13:25:12 +1000
committerAdam Thalhammer <s3544305@student.rmit.edu.au>2016-05-02 13:25:12 +1000
commit31c4448f6ea8ec4236e0b67af33b53db1a93ef13 (patch)
tree7ac7bdf531fcefe63344ace42d218a1ca3916e16 /test/test_utils.py
parent79a2e94e79e65cdf4898bc2dedb6a1bb4ca9af3c (diff)
Instead of replacing accented characters with an underscore when sanitizing file names in restricted mode, replace them with their non-accented equivalents fixes #9347
Diffstat (limited to 'test/test_utils.py')
-rw-r--r--test/test_utils.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/test_utils.py b/test/test_utils.py
index 0072ba241..00ada95ec 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -158,7 +158,6 @@ class TestUtil(unittest.TestCase):
self.assertEqual(sanitize_filename(
'ÂÃÄÀÁÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ', restricted=True),
'AAAAAAAECEEEEIIIIDNOOOOOOUUUUYPssaaaaaaaeceeeeiiiionoooooouuuuypy')
- pass
def test_sanitize_ids(self):
self.assertEqual(sanitize_filename('_n_cd26wFpw', is_id=True), '_n_cd26wFpw')