| Index: third_party/WebKit/Tools/Scripts/webkitpy/common/system/workspace_unittest.py
|
| diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/common/system/workspace_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/common/system/workspace_unittest.py
|
| index 5d965f0e595b9286bf269825be943351ff10c4e7..97e176f5033c5709f479a55d61e725c37ed28d78 100644
|
| --- a/third_party/WebKit/Tools/Scripts/webkitpy/common/system/workspace_unittest.py
|
| +++ b/third_party/WebKit/Tools/Scripts/webkitpy/common/system/workspace_unittest.py
|
| @@ -51,10 +51,13 @@ class WorkspaceTest(unittest.TestCase):
|
| def test_create_zip(self):
|
| workspace = Workspace(None, MockExecutive(should_log=True))
|
| expected_logs = "MOCK run_command: ['zip', '-9', '-r', '/zip/path', '.'], cwd=/source/path\n"
|
| +
|
| class MockZipFile(object):
|
| +
|
| def __init__(self, path):
|
| self.filename = path
|
| - archive = OutputCapture().assert_outputs(self, workspace.create_zip, ["/zip/path", "/source/path", MockZipFile], expected_logs=expected_logs)
|
| + archive = OutputCapture().assert_outputs(self, workspace.create_zip, [
|
| + "/zip/path", "/source/path", MockZipFile], expected_logs=expected_logs)
|
| self.assertEqual(archive.filename, "/zip/path")
|
|
|
| def test_create_zip_exception(self):
|
| @@ -65,8 +68,11 @@ MOCK ScriptError
|
|
|
| output: MOCK output of child process
|
| """
|
| +
|
| class MockZipFile(object):
|
| +
|
| def __init__(self, path):
|
| self.filename = path
|
| - archive = OutputCapture().assert_outputs(self, workspace.create_zip, ["/zip/path", "/source/path", MockZipFile], expected_logs=expected_logs)
|
| + archive = OutputCapture().assert_outputs(self, workspace.create_zip, [
|
| + "/zip/path", "/source/path", MockZipFile], expected_logs=expected_logs)
|
| self.assertIsNone(archive)
|
|
|