| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2014 The LUCI Authors. All rights reserved. | 2 # Copyright 2014 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 import datetime | 6 import datetime |
| 7 import hashlib | 7 import hashlib |
| 8 import logging | 8 import logging |
| 9 import os | 9 import os |
| 10 import sys | 10 import sys |
| 11 import unittest | 11 import unittest |
| 12 | 12 |
| 13 import test_env | 13 import test_env |
| 14 test_env.setup_test_env() | 14 test_env.setup_test_env() |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 | 215 |
| 216 def test_get_settings_key(self): | 216 def test_get_settings_key(self): |
| 217 expected = ndb.Key( | 217 expected = ndb.Key( |
| 218 bot_management.BotRoot, 'foo', bot_management.BotSettings, 'settings') | 218 bot_management.BotRoot, 'foo', bot_management.BotSettings, 'settings') |
| 219 self.assertEqual(expected, bot_management.get_settings_key('foo')) | 219 self.assertEqual(expected, bot_management.get_settings_key('foo')) |
| 220 | 220 |
| 221 if __name__ == '__main__': | 221 if __name__ == '__main__': |
| 222 logging.basicConfig( | 222 logging.basicConfig( |
| 223 level=logging.DEBUG if '-v' in sys.argv else logging.ERROR) | 223 level=logging.DEBUG if '-v' in sys.argv else logging.ERROR) |
| 224 unittest.main() | 224 unittest.main() |
| OLD | NEW |