diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2015-03-02 19:07:17 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2015-03-02 19:07:19 +0100 |
commit | a7440261c52d6518a429210aaae598095112c61b (patch) | |
tree | c7dddd1b2358f987e3117d34de27fd72a7c5bfeb /test/test_utils.py | |
parent | 76c73715fb1e0eee61ace5ff7855d8237abdcd54 (diff) |
[utils] Streap leading dots
Fixes #2865, closes #5087
Diffstat (limited to 'test/test_utils.py')
-rw-r--r-- | test/test_utils.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_utils.py b/test/test_utils.py index 3fba8ae11..64fad58ad 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -85,8 +85,11 @@ class TestUtil(unittest.TestCase): self.assertEqual( sanitize_filename('New World record at 0:12:34'), 'New World record at 0_12_34') + self.assertEqual(sanitize_filename('--gasdgf'), '_-gasdgf') self.assertEqual(sanitize_filename('--gasdgf', is_id=True), '--gasdgf') + self.assertEqual(sanitize_filename('.gasdgf'), 'gasdgf') + self.assertEqual(sanitize_filename('.gasdgf', is_id=True), '.gasdgf') forbidden = '"\0\\/' for fc in forbidden: |