mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
[1.8.x] Fixed typo in file_storage tests.
Backport of e2b77acedd from master
This commit is contained in:
@@ -249,7 +249,7 @@ class FileStorageTests(unittest.TestCase):
|
|||||||
self.assertEqual(self.storage.url(r"""~!*()'@#$%^&*abc`+ =.file"""),
|
self.assertEqual(self.storage.url(r"""~!*()'@#$%^&*abc`+ =.file"""),
|
||||||
"""/test_media_url/~!*()'%40%23%24%25%5E%26*abc%60%2B%20%3D.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
|
# should translate os path separator(s) to the url path separator
|
||||||
self.assertEqual(self.storage.url("""a/b\\c.file"""),
|
self.assertEqual(self.storage.url("""a/b\\c.file"""),
|
||||||
"""/test_media_url/a/b/c.file""")
|
"""/test_media_url/a/b/c.file""")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user