| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Unit tests for gclient_scm.py.""" | 6 """Unit tests for gclient_scm.py.""" |
| 7 | 7 |
| 8 # pylint: disable=E1103 | 8 # pylint: disable=E1103 |
| 9 | 9 |
| 10 # Import before super_mox to keep valid references. | 10 # Import before super_mox to keep valid references. |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 return self.OptionsObject(*args, **kwargs) | 95 return self.OptionsObject(*args, **kwargs) |
| 96 | 96 |
| 97 def setUp(self): | 97 def setUp(self): |
| 98 BaseTestCase.setUp(self) | 98 BaseTestCase.setUp(self) |
| 99 self.url = self.SvnUrl() | 99 self.url = self.SvnUrl() |
| 100 | 100 |
| 101 def testDir(self): | 101 def testDir(self): |
| 102 members = [ | 102 members = [ |
| 103 'BinaryExists', | 103 'BinaryExists', |
| 104 'FullUrlForRelativeUrl', | 104 'FullUrlForRelativeUrl', |
| 105 'GetCheckoutRoot', |
| 105 'GetRevisionDate', | 106 'GetRevisionDate', |
| 106 'GetUsableRev', | 107 'GetUsableRev', |
| 107 'RunCommand', | 108 'RunCommand', |
| 108 'cleanup', | 109 'cleanup', |
| 109 'diff', | 110 'diff', |
| 110 'nag_max', | 111 'nag_max', |
| 111 'nag_timer', | 112 'nag_timer', |
| 112 'pack', | 113 'pack', |
| 113 'relpath', | 114 'relpath', |
| 114 'revert', | 115 'revert', |
| (...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 782 unittest.TestCase.tearDown(self) | 783 unittest.TestCase.tearDown(self) |
| 783 rmtree(self.root_dir) | 784 rmtree(self.root_dir) |
| 784 gclient_scm.GitWrapper.BinaryExists = self._original_GitBinaryExists | 785 gclient_scm.GitWrapper.BinaryExists = self._original_GitBinaryExists |
| 785 gclient_scm.SVNWrapper.BinaryExists = self._original_SVNBinaryExists | 786 gclient_scm.SVNWrapper.BinaryExists = self._original_SVNBinaryExists |
| 786 | 787 |
| 787 class ManagedGitWrapperTestCase(BaseGitWrapperTestCase): | 788 class ManagedGitWrapperTestCase(BaseGitWrapperTestCase): |
| 788 def testDir(self): | 789 def testDir(self): |
| 789 members = [ | 790 members = [ |
| 790 'BinaryExists', | 791 'BinaryExists', |
| 791 'FullUrlForRelativeUrl', | 792 'FullUrlForRelativeUrl', |
| 793 'GetCheckoutRoot', |
| 792 'GetRevisionDate', | 794 'GetRevisionDate', |
| 793 'GetUsableRev', | 795 'GetUsableRev', |
| 794 'RunCommand', | 796 'RunCommand', |
| 795 'cleanup', | 797 'cleanup', |
| 796 'diff', | 798 'diff', |
| 797 'nag_max', | 799 'nag_max', |
| 798 'nag_timer', | 800 'nag_timer', |
| 799 'pack', | 801 'pack', |
| 800 'UpdateSubmoduleConfig', | 802 'UpdateSubmoduleConfig', |
| 801 'relpath', | 803 'relpath', |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1190 | 1192 |
| 1191 if __name__ == '__main__': | 1193 if __name__ == '__main__': |
| 1192 if '-v' in sys.argv: | 1194 if '-v' in sys.argv: |
| 1193 logging.basicConfig( | 1195 logging.basicConfig( |
| 1194 level=logging.DEBUG, | 1196 level=logging.DEBUG, |
| 1195 format='%(asctime).19s %(levelname)s %(filename)s:' | 1197 format='%(asctime).19s %(levelname)s %(filename)s:' |
| 1196 '%(lineno)s %(message)s') | 1198 '%(lineno)s %(message)s') |
| 1197 unittest.main() | 1199 unittest.main() |
| 1198 | 1200 |
| 1199 # vim: ts=2:sw=2:tw=80:et: | 1201 # vim: ts=2:sw=2:tw=80:et: |
| OLD | NEW |