| 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 """Unit tests for the source_control module.""" | 5 """Unit tests for the source_control module.""" |
| 6 | 6 |
| 7 import unittest | 7 import unittest |
| 8 import mock | 8 import mock |
| 9 | 9 |
| 10 import source_control | 10 import source_control |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 # pylint: disable=W0613 | 74 # pylint: disable=W0613 |
| 75 def FakeCheckRunGit(in_command, cwd=None): | 75 def FakeCheckRunGit(in_command, cwd=None): |
| 76 for command, output in command_output_map: | 76 for command, output in command_output_map: |
| 77 if command == in_command: | 77 if command == in_command: |
| 78 return output | 78 return output |
| 79 mock_obj.side_effect = FakeCheckRunGit | 79 mock_obj.side_effect = FakeCheckRunGit |
| 80 | 80 |
| 81 | 81 |
| 82 if __name__ == '__main__': | 82 if __name__ == '__main__': |
| 83 unittest.main() | 83 unittest.main() |
| 84 | |
| OLD | NEW |