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

Side by Side Diff: chrome/common/extensions/docs/server2/patch_servlet_test.py

Issue 1151283007: Docserver overhaul: Gitiles away from me. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove inform_users template to fix presubmit failure (it's now a redirect) Created 5 years, 6 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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2013 The Chromium Authors. All rights reserved. 2 # Copyright 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 from HTMLParser import HTMLParser 6 from HTMLParser import HTMLParser
7 import unittest 7 import unittest
8 8
9 from fake_fetchers import ConfigureFakeFetchers 9 from fake_fetchers import ConfigureFakeFetchers
10 from github_file_system_provider import GithubFileSystemProvider
11 from host_file_system_provider import HostFileSystemProvider 10 from host_file_system_provider import HostFileSystemProvider
12 from patch_servlet import PatchServlet 11 from patch_servlet import PatchServlet
13 from render_servlet import RenderServlet 12 from render_servlet import RenderServlet
14 from server_instance import ServerInstance 13 from server_instance import ServerInstance
15 from servlet import Request 14 from servlet import Request
16 from test_branch_utility import TestBranchUtility 15 from test_branch_utility import TestBranchUtility
17 from test_util import DisableLogging 16 from test_util import DisableLogging
18 17
19 18
20 19
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 'https://%s/_patch/12345' % _ALLOWED_HOST)) 157 'https://%s/_patch/12345' % _ALLOWED_HOST))
159 self.assertTrue(*is_redirect('developers.google.com', '12345', 158 self.assertTrue(*is_redirect('developers.google.com', '12345',
160 'https://%s/_patch/12345' % _ALLOWED_HOST)) 159 'https://%s/_patch/12345' % _ALLOWED_HOST))
161 self.assertFalse(*is_redirect('chrome-apps-doc.appspot.com', '12345', 160 self.assertFalse(*is_redirect('chrome-apps-doc.appspot.com', '12345',
162 None)) 161 None))
163 self.assertFalse(*is_redirect('some-other-app.appspot.com', '12345', 162 self.assertFalse(*is_redirect('some-other-app.appspot.com', '12345',
164 None)) 163 None))
165 164
166 if __name__ == '__main__': 165 if __name__ == '__main__':
167 unittest.main() 166 unittest.main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698