| 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 from copy import deepcopy | 6 from copy import deepcopy |
| 7 import json | 7 import json |
| 8 import unittest | 8 import unittest |
| 9 | 9 |
| 10 from compiled_file_system import CompiledFileSystem | 10 from compiled_file_system import CompiledFileSystem |
| 11 from features_bundle import FeaturesBundle | 11 from features_bundle import FeaturesBundle |
| 12 from future import Future | 12 from future import Future |
| 13 import manifest_data_source | 13 import manifest_data_source |
| 14 from object_store_creator import ObjectStoreCreator | 14 from object_store_creator import ObjectStoreCreator |
| 15 | 15 |
| 16 | 16 |
| 17 convert_and_annotate_docs = { | 17 convert_and_annotate_docs = { |
| 18 'name': { | 18 'name': { |
| 19 'example': "My {{title}}", | 19 'example': "My {{platform}}", |
| 20 'name': 'name', | 20 'name': 'name', |
| 21 'level': 'required' | 21 'level': 'required' |
| 22 }, | 22 }, |
| 23 'doc2': { | 23 'doc2': { |
| 24 'level': 'required', | 24 'level': 'required', |
| 25 'name': 'doc2' | 25 'name': 'doc2' |
| 26 }, | 26 }, |
| 27 'doc1': { | 27 'doc1': { |
| 28 'level': 'required', | 28 'level': 'required', |
| 29 'name': 'doc1', | 29 'name': 'doc1', |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 class FakeServerInstance(object): | 288 class FakeServerInstance(object): |
| 289 def __init__(self): | 289 def __init__(self): |
| 290 self.features_bundle = FakeFeaturesBundle() | 290 self.features_bundle = FakeFeaturesBundle() |
| 291 self.object_store_creator = ObjectStoreCreator.ForTest() | 291 self.object_store_creator = ObjectStoreCreator.ForTest() |
| 292 | 292 |
| 293 mds = manifest_data_source.ManifestDataSource(FakeServerInstance(), None) | 293 mds = manifest_data_source.ManifestDataSource(FakeServerInstance(), None) |
| 294 self.assertEqual(expected_app, mds.get('apps')) | 294 self.assertEqual(expected_app, mds.get('apps')) |
| 295 | 295 |
| 296 if __name__ == '__main__': | 296 if __name__ == '__main__': |
| 297 unittest.main() | 297 unittest.main() |
| OLD | NEW |