Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: appengine/swarming/server/bot_management_test.py

Issue 2220373003: Allow botlist API call to respond to quarantined: and is_dead: (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: Fix one edge case Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698