Test comparing against other types
(self)
| 299 | assert test_file.the_file.content_type == "text/plain" |
| 300 | |
| 301 | def test_file_cmp(self): |
| 302 | """Test comparing against other types""" |
| 303 | |
| 304 | class TestFile(Document): |
| 305 | the_file = FileField() |
| 306 | |
| 307 | test_file = TestFile() |
| 308 | assert test_file.the_file not in [{"test": 1}] |
| 309 | |
| 310 | def test_file_disk_space(self): |
| 311 | """Test disk space usage when we delete/replace a file""" |