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

def test_file_url(self):

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