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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/tool/servers/reflectionhandler_unittest.py

Issue 1839193004: Run auto-formatter (autopep8) on webkitpy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Tools/Scripts/webkitpy/tool/servers/reflectionhandler_unittest.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/tool/servers/reflectionhandler_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/tool/servers/reflectionhandler_unittest.py
index fe0c7388ea6390dba8b66a17c064845d8ce68bbd..83fedc69c5c640c3f06716e0ce49d6e140eef9dc 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/tool/servers/reflectionhandler_unittest.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/tool/servers/reflectionhandler_unittest.py
@@ -53,6 +53,7 @@ class TestReflectionHandler(ReflectionHandler):
class WriteConvertingLogger(object):
+
def __init__(self):
self.data = ''
@@ -62,6 +63,7 @@ class WriteConvertingLogger(object):
class TestReflectionHandlerServeXML(ReflectionHandler):
+
def __init__(self):
self.requestline = False
self.client_address = '127.0.0.1'
@@ -76,6 +78,7 @@ class TestReflectionHandlerServeXML(ReflectionHandler):
class ReflectionHandlerTest(unittest.TestCase):
+
def assert_handler_response(self, requests, expected_static_files, expected_errors, expected_functions):
handler = TestReflectionHandler()
for request in requests:
@@ -87,7 +90,8 @@ class ReflectionHandlerTest(unittest.TestCase):
def test_static_content_or_function_switch(self):
self.assert_handler_response(["/test.js"], set(["test.js"]), set(), set())
- self.assert_handler_response(["/test.js", "/test.css", "/test.html"], set(["test.js", "test.html", "test.css"]), set(), set())
+ self.assert_handler_response(["/test.js", "/test.css", "/test.html"],
+ set(["test.js", "test.html", "test.css"]), set(), set())
self.assert_handler_response(["/test.js", "/test.exe", "/testhtml"], set(["test.js"]), set([404]), set())
self.assert_handler_response(["/test.html", "/function.one"], set(["test.html"]), set(), set(['function_one']))
self.assert_handler_response(["/some.html"], set(["some.html"]), set(), set())

Powered by Google App Engine
This is Rietveld 408576698