diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-01-08 19:23:57 +0000 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-01-08 19:23:57 +0000 |
| commit | 78c92c416790b22eb837dbf852f93134e354173d (patch) | |
| tree | 63603c3caf26807c344d30d910806e7eaef87502 | |
| parent | 4a92059b0811bb1538f60d18981a27126683baf8 (diff) | |
Tested that spaces are properly escaped in files URLs. Refs #5160.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17361 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | tests/regressiontests/file_storage/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/regressiontests/file_storage/tests.py b/tests/regressiontests/file_storage/tests.py index d1ecbe60af..769e2c7371 100644 --- a/tests/regressiontests/file_storage/tests.py +++ b/tests/regressiontests/file_storage/tests.py @@ -229,8 +229,8 @@ class FileStorageTests(unittest.TestCase): # 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"""), |
