| OLD | NEW |
| (Empty) | |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import unittest |
| 6 |
| 7 from model.wf_suspected_cl import WfSuspectedCL |
| 8 |
| 9 |
| 10 class WfSuspectedCLTest(unittest.TestCase): |
| 11 def testGetBuildInfo(self): |
| 12 repo_name = 'chromium' |
| 13 revision = 'rev1' |
| 14 commit_position = 1 |
| 15 build = { |
| 16 'status': None |
| 17 } |
| 18 suspected_cl = WfSuspectedCL.Create(repo_name, revision, commit_position) |
| 19 suspected_cl.builds = { |
| 20 'm/b/123': build |
| 21 } |
| 22 self.assertEqual(build, suspected_cl.GetBuildInfo('m', 'b', 123)) |
| OLD | NEW |