def test_storage_simple_save(self):
        storage = QueuedStorage(
            local='django.core.files.storage.FileSystemStorage',
            remote='django.core.files.storage.FileSystemStorage',
            local_options=dict(location=self.local_dir),
            remote_options=dict(location=self.remote_dir),
            task='tests.tasks.test_task')

        field = models.TestModel._meta.get_field('testfile')
        field.storage = storage

        obj = models.TestModel(testfile=File(self.test_file))
        obj.save()

        self.assertTrue(path.isfile(path.join(self.local_dir, obj.testfile.name)))
        self.assertTrue(path.isfile(path.join(self.remote_dir, obj.testfile.name)))
Make sure that saving to remote locations actually works
dataset/ETHPy150Open jazzband/django-queued-storage/tests/test_storages.py/StorageTests.test_storage_simple_save