OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2016 The LUCI Authors. All rights reserved. | 2 # Copyright 2016 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 base64 | 6 import base64 |
7 import io | |
8 import json | 7 import json |
9 import os | |
10 import sys | |
11 import unittest | 8 import unittest |
12 import time | |
13 | 9 |
14 import test_env | 10 import test_env |
15 | 11 |
16 import mock | 12 import mock |
17 import subprocess42 | 13 import subprocess42 |
18 | 14 |
19 from recipe_engine import fetch | 15 from recipe_engine import fetch |
20 from recipe_engine import requests_ssl | 16 from recipe_engine import requests_ssl |
21 | 17 |
22 | 18 |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 'author': 'author', | 340 'author': 'author', |
345 'message': 'message', | 341 'message': 'message', |
346 }) | 342 }) |
347 self.assertEqual(counts['sleeps'], 4) | 343 self.assertEqual(counts['sleeps'], 4) |
348 requests_get.assert_has_calls([ | 344 requests_get.assert_has_calls([ |
349 mock.call('repo/+/revision?format=JSON'), | 345 mock.call('repo/+/revision?format=JSON'), |
350 ] * 5) | 346 ] * 5) |
351 | 347 |
352 if __name__ == '__main__': | 348 if __name__ == '__main__': |
353 unittest.main() | 349 unittest.main() |
OLD | NEW |