1. Nivl
  2. django-storages

Commits

Gor...@Gordon-PC  committed 5015483

test storage size

  • Participants
  • Parent commits b85d34c
  • Branches default

Comments (0)

Files changed (1)

File storages/tests/s3boto.py

View file
             self.assertTrue(name in files)
         self.assertTrue('foo' in dirs)
         
+    def test_storage_size(self):
+        name = self.prefix_path('test_storage_size.txt')
+        content = 'new content'
+        f = ContentFile(content)
+        self.storage.save(name, f)
+        self.assertEqual(self.storage.size(name), f.size)