diff --git a/tests/utils_tests/test_text.py b/tests/utils_tests/test_text.py index 62e792fab6..6758ee58ed 100644 --- a/tests/utils_tests/test_text.py +++ b/tests/utils_tests/test_text.py @@ -127,3 +127,7 @@ class TestUtilsText(SimpleTestCase): ] for value, output in items: self.assertEqual(text.unescape_entities(value), output) + + def test_get_valid_filename(self): + filename = "^&'@{}[],$=!-#()%+~_123.txt" + self.assertEqual(text.get_valid_filename(filename), "-_123.txt")