mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #16703 -- Raise an exception if the storage location of the DefaultStorageFinder is empty.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16863 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -96,6 +96,14 @@ class FileStorageTests(unittest.TestCase):
|
||||
shutil.rmtree(self.temp_dir)
|
||||
shutil.rmtree(self.temp_dir2)
|
||||
|
||||
def test_emtpy_location(self):
|
||||
"""
|
||||
Makes sure an exception is raised if the location is empty
|
||||
"""
|
||||
storage = self.storage_class(location='')
|
||||
self.assertEqual(storage.base_location, '')
|
||||
self.assertEqual(storage.location, os.getcwd())
|
||||
|
||||
def test_file_access_options(self):
|
||||
"""
|
||||
Standard file access options are available, and work as expected.
|
||||
|
||||
Reference in New Issue
Block a user