Ticket #5160: 5160-test.diff

File 5160-test.diff, 867 bytes (added by Claude Paroz, 13 years ago)

Test that issue is solved

  • tests/regressiontests/file_storage/tests.py

    diff --git a/tests/regressiontests/file_storage/tests.py b/tests/regressiontests/file_storage/tests.py
    index d1ecbe6..769e2c7 100644
    a b class FileStorageTests(unittest.TestCase):  
    229229
    230230        # should encode special chars except ~!*()'
    231231        # like encodeURIComponent() JavaScript function do
    232         self.assertEqual(self.storage.url(r"""~!*()'@#$%^&*abc`+=.file"""),
    233             """/test_media_url/~!*()'%40%23%24%25%5E%26*abc%60%2B%3D.file""")
     232        self.assertEqual(self.storage.url(r"""~!*()'@#$%^&*abc`+ =.file"""),
     233            """/test_media_url/~!*()'%40%23%24%25%5E%26*abc%60%2B%20%3D.file""")
    234234
    235235        # should stanslate os path separator(s) to the url path separator
    236236        self.assertEqual(self.storage.url("""a/b\\c.file"""),
Back to Top