aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_workbench.py
diff options
context:
space:
mode:
authorElrond <elrond+mediagoblin.org@samba-tng.org>2011-06-14 20:01:39 +0200
committerElrond <elrond+mediagoblin.org@samba-tng.org>2011-06-14 20:01:39 +0200
commit8bfa533f8b438e57a7950a8dcd02a275cbfa19df (patch)
tree3dbf591e62d9197df632b8e96723b658194f6e4d /mediagoblin/tests/test_workbench.py
parent52426ae01f0439af2833656a74eda70a240d66ae (diff)
downloadmediagoblin-8bfa533f8b438e57a7950a8dcd02a275cbfa19df.tar.lz
mediagoblin-8bfa533f8b438e57a7950a8dcd02a275cbfa19df.tar.xz
mediagoblin-8bfa533f8b438e57a7950a8dcd02a275cbfa19df.zip
Drop WorkbenchManager.localized_file()
As Workbench has the localized_file() method, use this everywhere and drop the wrapper method from WorkbenchManager. The processing code already did that.
Diffstat (limited to 'mediagoblin/tests/test_workbench.py')
-rw-r--r--mediagoblin/tests/test_workbench.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/mediagoblin/tests/test_workbench.py b/mediagoblin/tests/test_workbench.py
index 2795cd63..db27dfc6 100644
--- a/mediagoblin/tests/test_workbench.py
+++ b/mediagoblin/tests/test_workbench.py
@@ -83,20 +83,19 @@ class TestWorkbench(object):
with this_storage.get_file(filepath, 'w') as our_file:
our_file.write('Our file')
- filename = self.workbench_manager.localized_file(
- this_workbench, this_storage, filepath)
+ filename = this_workbench.localized_file(this_storage, filepath)
assert filename == os.path.join(
this_workbench.dir, 'ourfile.txt')
# fake remote file storage, filename_if_copying set
- filename = self.workbench_manager.localized_file(
- this_workbench, this_storage, filepath, 'thisfile')
+ filename = this_workbench.localized_file(
+ this_storage, filepath, 'thisfile')
assert filename == os.path.join(
this_workbench.dir, 'thisfile.txt')
# fake remote file storage, filename_if_copying set,
# keep_extension_if_copying set to false
- filename = self.workbench_manager.localized_file(
- this_workbench, this_storage, filepath, 'thisfile.text', False)
+ filename = this_workbench.localized_file(
+ this_storage, filepath, 'thisfile.text', False)
assert filename == os.path.join(
this_workbench.dir, 'thisfile.text')