Code

Ticket #5160: 5160-test.diff

File 5160-test.diff, 867 bytes (added by claudep, 3 years ago)

Test that issue is solved

Line 
1diff --git a/tests/regressiontests/file_storage/tests.py b/tests/regressiontests/file_storage/tests.py
2index d1ecbe6..769e2c7 100644
3--- a/tests/regressiontests/file_storage/tests.py
4+++ b/tests/regressiontests/file_storage/tests.py
5@@ -229,8 +229,8 @@ class FileStorageTests(unittest.TestCase):
6 
7         # should encode special chars except ~!*()'
8         # like encodeURIComponent() JavaScript function do
9-        self.assertEqual(self.storage.url(r"""~!*()'@#$%^&*abc`+=.file"""),
10-            """/test_media_url/~!*()'%40%23%24%25%5E%26*abc%60%2B%3D.file""")
11+        self.assertEqual(self.storage.url(r"""~!*()'@#$%^&*abc`+ =.file"""),
12+            """/test_media_url/~!*()'%40%23%24%25%5E%26*abc%60%2B%20%3D.file""")
13 
14         # should stanslate os path separator(s) to the url path separator
15         self.assertEqual(self.storage.url("""a/b\\c.file"""),