Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(394)

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/command_test.py

Issue 2329263002: Run format-webkitpy and fix long lines. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright (C) 2009 Google Inc. All rights reserved. 1 # Copyright (C) 2009 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 17 matching lines...) Expand all
28 28
29 import optparse 29 import optparse
30 import unittest 30 import unittest
31 31
32 from webkitpy.common.system.outputcapture import OutputCapture 32 from webkitpy.common.system.outputcapture import OutputCapture
33 from webkitpy.tool.mock_tool import MockWebKitPatch 33 from webkitpy.tool.mock_tool import MockWebKitPatch
34 34
35 35
36 class CommandsTest(unittest.TestCase): 36 class CommandsTest(unittest.TestCase):
37 37
38 def assert_execute_outputs(self, command, args=None, expected_stdout="", exp ected_stderr="", 38 def assert_execute_outputs(
39 expected_exception=None, expected_logs=None, opti ons=optparse.Values(), tool=MockWebKitPatch()): 39 self, command, args=None, expected_stdout="", expected_stderr="",
40 expected_exception=None, expected_logs=None, options=optparse.Values (), tool=MockWebKitPatch()):
40 args = args or [] 41 args = args or []
41 options.blocks = None 42 options.blocks = None
42 options.cc = 'MOCK cc' 43 options.cc = 'MOCK cc'
43 options.component = 'MOCK component' 44 options.component = 'MOCK component'
44 options.confirm = True 45 options.confirm = True
45 options.email = 'MOCK email' 46 options.email = 'MOCK email'
46 options.git_commit = 'MOCK git commit' 47 options.git_commit = 'MOCK git commit'
47 options.obsolete_patches = True 48 options.obsolete_patches = True
48 options.open_bug = True 49 options.open_bug = True
49 options.port = 'MOCK port' 50 options.port = 'MOCK port'
50 options.update_changelogs = False 51 options.update_changelogs = False
51 options.quiet = True 52 options.quiet = True
52 options.reviewer = 'MOCK reviewer' 53 options.reviewer = 'MOCK reviewer'
53 OutputCapture().assert_outputs(self, command.execute, [options, args, to ol], expected_stdout=expected_stdout, 54 OutputCapture().assert_outputs(
54 expected_stderr=expected_stderr, expected _exception=expected_exception, expected_logs=expected_logs) 55 self, command.execute, [options, args, tool], expected_stdout=expect ed_stdout,
56 expected_stderr=expected_stderr, expected_exception=expected_excepti on, expected_logs=expected_logs)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698