'File storage returns a url to access a given file from the Web.'

def test_file_url(self):

    self.assertEqual(self.storage.url('test.file'), (self.storage.base_url + 'test.file'))
    self.assertEqual(self.storage.url("~!*()'@#$%^&*abc`+    =.file"), "/test_media_url/~!*()'%40%23%24%25%5E%26*abc%60%2B%20%3D.file")
    self.assertEqual(self.storage.url('ab\x00c'), '/test_media_url/ab%00c')
    self.assertEqual(self.storage.url('a/b\\c.file'), '/test_media_url/a/b/c.file')
    self.assertEqual(self.storage.url('/evil.com'), '/test_media_url/evil.com')
    self.assertEqual(self.storage.url('\\evil.com'), '/test_media_url/evil.com')
    self.assertEqual(self.storage.url('///evil.com'), '/test_media_url/evil.com')
    self.assertEqual(self.storage.url('\\\\\\evil.com'), '/test_media_url/evil.com')
    self.assertEqual(self.storage.url(None), '/test_media_url/')
