Did I find the right examples for you? yes no

All Samples(12)  |  Call(8)  |  Derive(0)  |  Import(4)

        def get_tmp_filestorage(mount_url=None, fake_remote=False):
    tmpdir = tempfile.mkdtemp(prefix="test_gmg_storage")
    if fake_remote:
        this_storage = FakeRemoteStorage(tmpdir, mount_url)
    else:
        this_storage = storage.filestorage.BasicFileStorage(tmpdir, mount_url)
    return tmpdir, this_storage
        


src/m/e/mediagoblin-0.6.1/mediagoblin/tests/test_workbench.py   mediagoblin(Download)
from mediagoblin.mg_globals import setup_globals
from mediagoblin.decorators import get_workbench
from mediagoblin.tests.test_storage import get_tmp_filestorage, cleanup_storage
 
 
    def test_localized_file(self):
        tmpdir, this_storage = get_tmp_filestorage()
        this_workbench = self.workbench_manager.create()
 
        # Write a brand new file
 
        # with a fake remote file storage
        tmpdir, this_storage = get_tmp_filestorage(fake_remote=True)
 
        # ... write a brand new file, again ;)

src/j/o/JoshuaGoblin-HEAD/mediagoblin/tests/test_workbench.py   JoshuaGoblin(Download)
from mediagoblin.mg_globals import setup_globals
from mediagoblin.decorators import get_workbench
from mediagoblin.tests.test_storage import get_tmp_filestorage, cleanup_storage
 
 
    def test_localized_file(self):
        tmpdir, this_storage = get_tmp_filestorage()
        this_workbench = self.workbench_manager.create()
 
        # Write a brand new file
 
        # with a fake remote file storage
        tmpdir, this_storage = get_tmp_filestorage(fake_remote=True)
 
        # ... write a brand new file, again ;)

src/m/e/mediagoblin-spaetz-0.3.2.dev/mediagoblin/tests/test_workbench.py   mediagoblin-spaetz(Download)
 
from mediagoblin import workbench
from mediagoblin.tests.test_storage import get_tmp_filestorage
 
 
    def test_localized_file(self):
        tmpdir, this_storage = get_tmp_filestorage()
        this_workbench = self.workbench_manager.create_workbench()
 
        # Write a brand new file
 
        # with a fake remote file storage
        tmpdir, this_storage = get_tmp_filestorage(fake_remote=True)
 
        # ... write a brand new file, again ;)

src/m/e/mediagoblin-HEAD/mediagoblin/tests/test_workbench.py   mediagoblin(Download)
 
from mediagoblin import workbench
from mediagoblin.tests.test_storage import get_tmp_filestorage
 
 
    def test_localized_file(self):
        tmpdir, this_storage = get_tmp_filestorage()
        this_workbench = self.workbench_manager.create_workbench()
 
        # Write a brand new file
 
        # with a fake remote file storage
        tmpdir, this_storage = get_tmp_filestorage(fake_remote=True)
 
        # ... write a brand new file, again ;)