| 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 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 | 441 |
| 442 expected_blame_list = [ | 442 expected_blame_list = [ |
| 443 '449cdbd05616de91fcf7e8b4282e300336d6d7c5', | 443 '449cdbd05616de91fcf7e8b4282e300336d6d7c5', |
| 444 '6addffac2601ab1083a55d085847d9bf8e66da02' | 444 '6addffac2601ab1083a55d085847d9bf8e66da02' |
| 445 ] | 445 ] |
| 446 | 446 |
| 447 build_info = buildbot.ExtractBuildInfo( | 447 build_info = buildbot.ExtractBuildInfo( |
| 448 master_name, builder_name, build_number, build_data) | 448 master_name, builder_name, build_number, build_data) |
| 449 | 449 |
| 450 self.assertEqual(expected_blame_list, build_info.blame_list) | 450 self.assertEqual(expected_blame_list, build_info.blame_list) |
| OLD | NEW |