def enable(self):
        tmp_dir = tempfile.mkdtemp()
        self.options['MEDIA_ROOT'] = tmp_dir
        super(temporary_media_root, self).enable()
Create a temporary directory and use it to override
dataset/ETHPy150Open benoitbryon/django-downloadview/django_downloadview/test.py/temporary_media_root.enable