Commits

aaug...@bcc190cf-cafb-0310-a4f2-bffc1f526a37  committed 2493c98

Tested that spaces are properly escaped in files URLs. Refs #5160.

  • Participants
  • Parent commits 4dedc70

Comments (0)

Files changed (1)

File tests/regressiontests/file_storage/tests.py

 
         # should encode special chars except ~!*()'
         # like encodeURIComponent() JavaScript function do
-        self.assertEqual(self.storage.url(r"""~!*()'@#$%^&*abc`+=.file"""),
-            """/test_media_url/~!*()'%40%23%24%25%5E%26*abc%60%2B%3D.file""")
+        self.assertEqual(self.storage.url(r"""~!*()'@#$%^&*abc`+ =.file"""),
+            """/test_media_url/~!*()'%40%23%24%25%5E%26*abc%60%2B%20%3D.file""")
 
         # should stanslate os path separator(s) to the url path separator
         self.assertEqual(self.storage.url("""a/b\\c.file"""),