aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_workbench.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-06-11 21:23:32 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-06-11 21:23:32 -0500
commit68ffb13690fa0c364c514ce253364f928e50841c (patch)
treea5cb947c68c20ae1b2fa9fc13e599931bf96e0ea /mediagoblin/tests/test_workbench.py
parentca030ab6cd5c18b7991f08a1ee103175f313c5a1 (diff)
downloadmediagoblin-68ffb13690fa0c364c514ce253364f928e50841c.tar.lz
mediagoblin-68ffb13690fa0c364c514ce253364f928e50841c.tar.xz
mediagoblin-68ffb13690fa0c364c514ce253364f928e50841c.zip
possibly_localize_file->localized_file... a bit less terribly long.
Diffstat (limited to 'mediagoblin/tests/test_workbench.py')
-rw-r--r--mediagoblin/tests/test_workbench.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/mediagoblin/tests/test_workbench.py b/mediagoblin/tests/test_workbench.py
index 994688c4..89f2ef33 100644
--- a/mediagoblin/tests/test_workbench.py
+++ b/mediagoblin/tests/test_workbench.py
@@ -54,7 +54,7 @@ class TestWorkbench(object):
self.workbench_manager.destroy_workbench,
dont_kill_this)
- def test_possibly_localize_file(self):
+ def test_localized_file(self):
tmpdir, this_storage = get_tmp_filestorage()
this_workbench = self.workbench_manager.create_workbench()
@@ -65,7 +65,7 @@ class TestWorkbench(object):
our_file.write('Our file')
# with a local file storage
- filename = self.workbench_manager.possibly_localize_file(
+ filename = self.workbench_manager.localized_file(
this_workbench, this_storage, filepath)
assert filename == os.path.join(
tmpdir, 'dir1/dir2/ourfile.txt')
@@ -77,20 +77,20 @@ class TestWorkbench(object):
with this_storage.get_file(filepath, 'w') as our_file:
our_file.write('Our file')
- filename = self.workbench_manager.possibly_localize_file(
+ filename = self.workbench_manager.localized_file(
this_workbench, this_storage, filepath)
assert filename == os.path.join(
this_workbench, 'ourfile.txt')
# fake remote file storage, filename_if_copying set
- filename = self.workbench_manager.possibly_localize_file(
+ filename = self.workbench_manager.localized_file(
this_workbench, this_storage, filepath, 'thisfile')
assert filename == os.path.join(
this_workbench, 'thisfile.txt')
# fake remote file storage, filename_if_copying set,
# keep_extension_if_copying set to false
- filename = self.workbench_manager.possibly_localize_file(
+ filename = self.workbench_manager.localized_file(
this_workbench, this_storage, filepath, 'thisfile.text', False)
assert filename == os.path.join(
this_workbench, 'thisfile.text')