(self)
| 819 | obj.normal.close() |
| 820 | |
| 821 | def test_filefield_reopen(self): |
| 822 | obj = Storage.objects.create( |
| 823 | normal=SimpleUploadedFile("reopen.txt", b"content") |
| 824 | ) |
| 825 | with obj.normal as normal: |
| 826 | normal.open() |
| 827 | obj.normal.open() |
| 828 | obj.normal.file.seek(0) |
| 829 | obj.normal.close() |
| 830 | |
| 831 | def test_duplicate_filename(self): |
| 832 | # Multiple files with the same name get _(7 random chars) appended to |
nothing calls this directly
no test coverage detected