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

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

Issue 297963004: Docserver: Update app version parsing since AppEngine started including / (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 6 years, 7 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 | Annotate | Revision Log
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 functools 6 import functools
7 import os 7 import os
8 8
9 from appengine_wrappers import GetAppVersion
10 from compiled_file_system import CompiledFileSystem 9 from compiled_file_system import CompiledFileSystem
11 from copy import deepcopy 10 from copy import deepcopy
11 from environment import GetAppVersion
12 from file_system import FileNotFoundError 12 from file_system import FileNotFoundError
13 from mock_file_system import MockFileSystem 13 from mock_file_system import MockFileSystem
14 from object_store_creator import ObjectStoreCreator 14 from object_store_creator import ObjectStoreCreator
15 from test_file_system import TestFileSystem 15 from test_file_system import TestFileSystem
16 from test_object_store import TestObjectStore 16 from test_object_store import TestObjectStore
17 import unittest 17 import unittest
18 18
19 _TEST_DATA = { 19 _TEST_DATA = {
20 '404.html': '404.html contents', 20 '404.html': '404.html contents',
21 'apps': { 21 'apps': {
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 self.assertTrue(*mock_fs.CheckAndReset(stat_count=1, 197 self.assertTrue(*mock_fs.CheckAndReset(stat_count=1,
198 read_count=2, 198 read_count=2,
199 read_resolve_count=1)) 199 read_resolve_count=1))
200 future.Get() 200 future.Get()
201 self.assertTrue(*mock_fs.CheckAndReset(read_count=2, read_resolve_count=3)) 201 self.assertTrue(*mock_fs.CheckAndReset(read_count=2, read_resolve_count=3))
202 202
203 203
204 204
205 if __name__ == '__main__': 205 if __name__ == '__main__':
206 unittest.main() 206 unittest.main()
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/server2/appengine_wrappers.py ('k') | chrome/common/extensions/docs/server2/cron.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698