Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 78c92c416790b22eb837dbf852f93134e354173d 1 parent 4a92059
Aymeric Augustin aaugustin authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/regressiontests/file_storage/tests.py
4 tests/regressiontests/file_storage/tests.py
View
@@ -229,8 +229,8 @@ def test_file_url(self):
# 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"""),
Please sign in to comment.
Something went wrong with that request. Please try again.