| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2015 The LUCI Authors. All rights reserved. | 2 # Copyright 2015 The LUCI Authors. All rights reserved. |
| 3 # Use of this source code is governed by the Apache v2.0 license that can be | 3 # Use of this source code is governed under the Apache License, Version 2.0 |
| 4 # found in the LICENSE file. | 4 # that can be found in the LICENSE file. |
| 5 | 5 |
| 6 from test_env import future | 6 from test_env import future |
| 7 import test_env | 7 import test_env |
| 8 test_env.setup_test_env() | 8 test_env.setup_test_env() |
| 9 | 9 |
| 10 from test_support import test_case | 10 from test_support import test_case |
| 11 import mock | 11 import mock |
| 12 | 12 |
| 13 from components.config.proto import service_config_pb2 | 13 from components.config.proto import service_config_pb2 |
| 14 | 14 |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 actual = storage.get_latest_as_message_async( | 153 actual = storage.get_latest_as_message_async( |
| 154 'services/sample-app', 'acl.cfg', | 154 'services/sample-app', 'acl.cfg', |
| 155 service_config_pb2.AclCfg).get_result() | 155 service_config_pb2.AclCfg).get_result() |
| 156 self.assertEqual(expected, actual) | 156 self.assertEqual(expected, actual) |
| 157 self.assertFalse(storage.get_config_hash_async.called) | 157 self.assertFalse(storage.get_config_hash_async.called) |
| 158 self.assertFalse(storage.get_config_by_hash_async.called) | 158 self.assertFalse(storage.get_config_by_hash_async.called) |
| 159 | 159 |
| 160 | 160 |
| 161 if __name__ == '__main__': | 161 if __name__ == '__main__': |
| 162 test_env.main() | 162 test_env.main() |
| OLD | NEW |