OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 from datetime import datetime | 5 from datetime import datetime |
6 import mock | 6 import mock |
7 import os | 7 import os |
8 import unittest | 8 import unittest |
9 | 9 |
10 from common.retry_http_client import RetryHttpClient | 10 from libs.http.retry_http_client import RetryHttpClient |
11 from waterfall import buildbot | 11 from waterfall import buildbot |
12 | 12 |
13 | 13 |
14 class DummyHttpClient(RetryHttpClient): | 14 class DummyHttpClient(RetryHttpClient): |
15 | 15 |
16 def __init__(self, status_code, response_content): | 16 def __init__(self, status_code, response_content): |
17 self.status_code = status_code | 17 self.status_code = status_code |
18 self.response_content = response_content | 18 self.response_content = response_content |
19 self.requests = [] | 19 self.requests = [] |
20 | 20 |
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 | 443 |
444 expected_blame_list = [ | 444 expected_blame_list = [ |
445 '449cdbd05616de91fcf7e8b4282e300336d6d7c5', | 445 '449cdbd05616de91fcf7e8b4282e300336d6d7c5', |
446 '6addffac2601ab1083a55d085847d9bf8e66da02' | 446 '6addffac2601ab1083a55d085847d9bf8e66da02' |
447 ] | 447 ] |
448 | 448 |
449 build_info = buildbot.ExtractBuildInfo( | 449 build_info = buildbot.ExtractBuildInfo( |
450 master_name, builder_name, build_number, build_data) | 450 master_name, builder_name, build_number, build_data) |
451 | 451 |
452 self.assertEqual(expected_blame_list, build_info.blame_list) | 452 self.assertEqual(expected_blame_list, build_info.blame_list) |
OLD | NEW |