Commits

Gor...@Gordon-PC  committed 5015483 Draft

test storage size

  • Participants
  • Parent commits b85d34c

Comments (0)

Files changed (1)

File storages/tests/s3boto.py

             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)