| 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 under the Apache License, Version 2.0 | 3 # Use of this source code is governed under the Apache License, Version 2.0 |
| 4 # that can be 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 sys | 9 import sys |
| 10 import unittest | 10 import unittest |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 def test_get_root_key(self): | 223 def test_get_root_key(self): |
| 224 self.assertEqual( | 224 self.assertEqual( |
| 225 ndb.Key(bot_management.BotRoot, 'foo'), | 225 ndb.Key(bot_management.BotRoot, 'foo'), |
| 226 bot_management.get_root_key('foo')) | 226 bot_management.get_root_key('foo')) |
| 227 | 227 |
| 228 def test_get_settings_key(self): | 228 def test_get_settings_key(self): |
| 229 expected = ndb.Key( | 229 expected = ndb.Key( |
| 230 bot_management.BotRoot, 'foo', bot_management.BotSettings, 'settings') | 230 bot_management.BotRoot, 'foo', bot_management.BotSettings, 'settings') |
| 231 self.assertEqual(expected, bot_management.get_settings_key('foo')) | 231 self.assertEqual(expected, bot_management.get_settings_key('foo')) |
| 232 | 232 |
| 233 def test_filter_dimensions(self): |
| 234 pass # Tested in handlers_endpoints_test |
| 235 |
| 236 def test_filter_availability(self): |
| 237 pass # Tested in handlers_endpoints_test |
| 238 |
| 233 if __name__ == '__main__': | 239 if __name__ == '__main__': |
| 234 logging.basicConfig( | 240 logging.basicConfig( |
| 235 level=logging.DEBUG if '-v' in sys.argv else logging.ERROR) | 241 level=logging.DEBUG if '-v' in sys.argv else logging.ERROR) |
| 236 unittest.main() | 242 unittest.main() |
| OLD | NEW |