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

Side by Side Diff: chrome/common/extensions/docs/server2/instance_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 import unittest 6 import unittest
7 7
8 from github_file_system_provider import GithubFileSystemProvider
9 from instance_servlet import InstanceServlet 8 from instance_servlet import InstanceServlet
10 from servlet import Request 9 from servlet import Request
11 from fail_on_access_file_system import FailOnAccessFileSystem 10 from fail_on_access_file_system import FailOnAccessFileSystem
12 from test_branch_utility import TestBranchUtility 11 from test_branch_utility import TestBranchUtility
13 from test_util import DisableLogging 12 from test_util import DisableLogging
14 13
15 # NOTE(kalman): The ObjectStore created by the InstanceServlet is backed onto 14 # NOTE(kalman): The ObjectStore created by the InstanceServlet is backed onto
16 # our fake AppEngine memcache/datastore, so the tests aren't isolated. 15 # our fake AppEngine memcache/datastore, so the tests aren't isolated.
17 class _TestDelegate(InstanceServlet.Delegate): 16 class _TestDelegate(InstanceServlet.Delegate):
18 def __init__(self, file_system_type): 17 def __init__(self, file_system_type):
(...skipping 24 matching lines...) Expand all
43 test_path('extensions/examples/foo.html') 42 test_path('extensions/examples/foo.html')
44 test_path('static/foo.css') 43 test_path('static/foo.css')
45 test_path('beta/extensions/storage.html', status=301) 44 test_path('beta/extensions/storage.html', status=301)
46 test_path('beta/apps/storage.html', status=301) 45 test_path('beta/apps/storage.html', status=301)
47 test_path('beta/extensions/examples/foo.zip', status=301) 46 test_path('beta/extensions/examples/foo.zip', status=301)
48 test_path('beta/extensions/examples/foo.html', status=301) 47 test_path('beta/extensions/examples/foo.html', status=301)
49 test_path('beta/static/foo.css', status=301) 48 test_path('beta/static/foo.css', status=301)
50 49
51 if __name__ == '__main__': 50 if __name__ == '__main__':
52 unittest.main() 51 unittest.main()
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/server2/instance_servlet.py ('k') | chrome/common/extensions/docs/server2/integration_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698