| OLD | NEW |
| 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 Loading... |
| 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() |
| OLD | NEW |