summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/file_storage/tests.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/file_storage/tests.py b/tests/file_storage/tests.py
index af86f2d260..9f50ff06e7 100644
--- a/tests/file_storage/tests.py
+++ b/tests/file_storage/tests.py
@@ -736,16 +736,6 @@ class FileFieldStorageTests(TestCase):
self.assertEqual(list(obj.normal.chunks(chunk_size=2)), [b"co", b"nt", b"en", b"t"])
obj.normal.close()
- def test_filefield_write(self):
- # Files can be written to.
- obj = Storage.objects.create(normal=SimpleUploadedFile('rewritten.txt', b'content'))
- with obj.normal as normal:
- normal.open('wb')
- normal.write(b'updated')
- obj.refresh_from_db()
- self.assertEqual(obj.normal.read(), b'updated')
- obj.normal.close()
-
def test_duplicate_filename(self):
# Multiple files with the same name get _(7 random chars) appended to them.
objs = [Storage() for i in range(2)]