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

Unified Diff: chrome/common/extensions/docs/server2/integration_test.py

Issue 13470005: Refactor the devserver to make it easier to control caching (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cduvall, rebase Created 7 years, 8 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: chrome/common/extensions/docs/server2/integration_test.py
diff --git a/chrome/common/extensions/docs/server2/integration_test.py b/chrome/common/extensions/docs/server2/integration_test.py
index da02e75296e397a519d168d9d3cc63a4d0370531..60b4f00628e0e37a24c818934e6925f2bd2efac9 100755
--- a/chrome/common/extensions/docs/server2/integration_test.py
+++ b/chrome/common/extensions/docs/server2/integration_test.py
@@ -49,7 +49,7 @@ class IntegrationTest(unittest.TestCase):
request.headers['Accept-Language'] = lang + ';q=0.8'
response = _MockResponse()
try:
- Handler(request, response, local_path=BASE_PATH).get()
+ Handler(request, response).get()
if 200 != response.status:
failures.append(
'Samples page with language %s does not have 200 status.'
@@ -82,7 +82,7 @@ class IntegrationTest(unittest.TestCase):
request = _MockRequest(filename)
response = _MockResponse()
try:
- Handler(request, response, local_path=BASE_PATH).get()
+ Handler(request, response).get()
if 200 != response.status:
failures.append('%s does not have 200 status. Status was %d.' %
(filename, response.status))
@@ -108,11 +108,11 @@ class IntegrationTest(unittest.TestCase):
logging.getLogger().setLevel(logging.CRITICAL)
request = _MockRequest('extensions/junk.html')
bad_response = _MockResponse()
- Handler(request, bad_response, local_path=BASE_PATH).get()
+ Handler(request, bad_response).get()
self.assertEqual(404, bad_response.status)
request_404 = _MockRequest('404.html')
response_404 = _MockResponse()
- Handler(request_404, response_404, local_path=BASE_PATH).get()
+ Handler(request_404, response_404).get()
self.assertEqual(200, response_404.status)
self.assertEqual(response_404.out.getvalue(), bad_response.out.getvalue())
@@ -124,7 +124,7 @@ class IntegrationTest(unittest.TestCase):
logging.error = self.fail
request = _MockRequest('/cron/trunk')
response = _MockResponse()
- Handler(request, response, local_path=BASE_PATH).get()
+ Handler(request, response).get()
self.assertEqual(200, response.status)
self.assertEqual('Success', response.out.getvalue())
finally:

Powered by Google App Engine
This is Rietveld 408576698