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 appengine_wrappers import GetAppVersion | 8 from appengine_wrappers import GetAppVersion |
9 from app_yaml_helper import AppYamlHelper | 9 from app_yaml_helper import AppYamlHelper |
10 from cron_servlet import CronServlet | 10 from cron_servlet import CronServlet |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 'public': { | 96 'public': { |
97 'apps': { | 97 'apps': { |
98 'storage.html': 'storage.html contents' | 98 'storage.html': 'storage.html contents' |
99 }, | 99 }, |
100 'extensions': { | 100 'extensions': { |
101 'storage.html': 'storage.html contents' | 101 'storage.html': 'storage.html contents' |
102 }, | 102 }, |
103 }, | 103 }, |
104 'json': { | 104 'json': { |
105 'manifest.json': '{}', | 105 'manifest.json': '{}', |
106 'strings.json': '{}' | 106 'strings.json': '{}', |
| 107 'apps_sidenav.json': '{}', |
| 108 'extensions_sidenav.json': '{}', |
107 }, | 109 }, |
108 } | 110 } |
109 } | 111 } |
110 } | 112 } |
111 | 113 |
112 updates = [] | 114 updates = [] |
113 | 115 |
114 def app_yaml_update(version): | 116 def app_yaml_update(version): |
115 return {'docs': {'server2': { | 117 return {'docs': {'server2': { |
116 'app.yaml': AppYamlHelper.GenerateAppYaml(version) | 118 'app.yaml': AppYamlHelper.GenerateAppYaml(version) |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 CronServlet(Request.ForTest('trunk'), delegate_for_test=delegate).Get() | 212 CronServlet(Request.ForTest('trunk'), delegate_for_test=delegate).Get() |
211 self.assertEqual(AppYamlHelper.GenerateAppYaml('2-1-0'), | 213 self.assertEqual(AppYamlHelper.GenerateAppYaml('2-1-0'), |
212 file_systems[-1].ReadSingle(app_yaml_path)) | 214 file_systems[-1].ReadSingle(app_yaml_path)) |
213 self.assertEqual('y u not update!', | 215 self.assertEqual('y u not update!', |
214 file_systems[-1].ReadSingle(storage_html_path)) | 216 file_systems[-1].ReadSingle(storage_html_path)) |
215 self.assertEqual('important content!', | 217 self.assertEqual('important content!', |
216 file_systems[-1].ReadSingle(static_txt_path)) | 218 file_systems[-1].ReadSingle(static_txt_path)) |
217 | 219 |
218 if __name__ == '__main__': | 220 if __name__ == '__main__': |
219 unittest.main() | 221 unittest.main() |
OLD | NEW |