| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 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 os | 6 import os |
| 7 import sys | 7 import sys |
| 8 import unittest | 8 import unittest |
| 9 | 9 |
| 10 from compiled_file_system import CompiledFileSystem | 10 from compiled_file_system import CompiledFileSystem |
| 11 from in_memory_object_store import InMemoryObjectStore | |
| 12 from local_file_system import LocalFileSystem | 11 from local_file_system import LocalFileSystem |
| 13 from object_store_creator import ObjectStoreCreator | 12 from object_store_creator import ObjectStoreCreator |
| 14 from sidenav_data_source import SidenavDataSource | 13 from sidenav_data_source import SidenavDataSource |
| 15 | 14 |
| 16 class SamplesDataSourceTest(unittest.TestCase): | 15 class SamplesDataSourceTest(unittest.TestCase): |
| 17 def setUp(self): | 16 def setUp(self): |
| 18 self._base_path = os.path.join(sys.path[0], | 17 self._base_path = os.path.join(sys.path[0], |
| 19 'test_data', | 18 'test_data', |
| 20 'sidenav_data_source') | 19 'sidenav_data_source') |
| 21 self._compiled_fs_factory = CompiledFileSystem.Factory( | 20 self._compiled_fs_factory = CompiledFileSystem.Factory( |
| (...skipping 25 matching lines...) Expand all Loading... |
| 47 if next_item['title'] == 'B': | 46 if next_item['title'] == 'B': |
| 48 self.assertTrue(next_item.get('selected', False)) | 47 self.assertTrue(next_item.get('selected', False)) |
| 49 return | 48 return |
| 50 # If we didn't return already, we should fail. | 49 # If we didn't return already, we should fail. |
| 51 self.fail() | 50 self.fail() |
| 52 | 51 |
| 53 | 52 |
| 54 | 53 |
| 55 if __name__ == '__main__': | 54 if __name__ == '__main__': |
| 56 unittest.main() | 55 unittest.main() |
| OLD | NEW |