Commits

Anonymous committed 5015483

test storage size

Comments (0)

Files changed (1)

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)