| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 'GetCheckoutRoot', |
| 106 'GetRevisionDate', | 106 'GetRevisionDate', |
| 107 'GetUsableRev', | 107 'GetUsableRev', |
| 108 'RunCommand', | 108 'RunCommand', |
| 109 'cache_dir', |
| 110 'cache_locks', |
| 109 'cleanup', | 111 'cleanup', |
| 110 'diff', | 112 'diff', |
| 111 'nag_max', | 113 'nag_max', |
| 112 'nag_timer', | 114 'nag_timer', |
| 113 'pack', | 115 'pack', |
| 114 'relpath', | 116 'relpath', |
| 115 'revert', | 117 'revert', |
| 116 'revinfo', | 118 'revinfo', |
| 117 'runhooks', | 119 'runhooks', |
| 118 'status', | 120 'status', |
| (...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 678 class OptionsObject(object): | 680 class OptionsObject(object): |
| 679 def __init__(self, verbose=False, revision=None): | 681 def __init__(self, verbose=False, revision=None): |
| 680 self.verbose = verbose | 682 self.verbose = verbose |
| 681 self.revision = revision | 683 self.revision = revision |
| 682 self.manually_grab_svn_rev = True | 684 self.manually_grab_svn_rev = True |
| 683 self.deps_os = None | 685 self.deps_os = None |
| 684 self.force = False | 686 self.force = False |
| 685 self.reset = False | 687 self.reset = False |
| 686 self.nohooks = False | 688 self.nohooks = False |
| 687 self.upstream = False | 689 self.upstream = False |
| 690 self.cache_dir = None |
| 688 self.merge = False | 691 self.merge = False |
| 689 self.jobs = 1 | 692 self.jobs = 1 |
| 690 self.delete_unversioned_trees = False | 693 self.delete_unversioned_trees = False |
| 691 | 694 |
| 692 sample_git_import = """blob | 695 sample_git_import = """blob |
| 693 mark :1 | 696 mark :1 |
| 694 data 6 | 697 data 6 |
| 695 Hello | 698 Hello |
| 696 | 699 |
| 697 blob | 700 blob |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 788 | 791 |
| 789 class ManagedGitWrapperTestCase(BaseGitWrapperTestCase): | 792 class ManagedGitWrapperTestCase(BaseGitWrapperTestCase): |
| 790 def testDir(self): | 793 def testDir(self): |
| 791 members = [ | 794 members = [ |
| 792 'BinaryExists', | 795 'BinaryExists', |
| 793 'FullUrlForRelativeUrl', | 796 'FullUrlForRelativeUrl', |
| 794 'GetCheckoutRoot', | 797 'GetCheckoutRoot', |
| 795 'GetRevisionDate', | 798 'GetRevisionDate', |
| 796 'GetUsableRev', | 799 'GetUsableRev', |
| 797 'RunCommand', | 800 'RunCommand', |
| 801 'cache_dir', |
| 802 'cache_locks', |
| 798 'cleanup', | 803 'cleanup', |
| 799 'diff', | 804 'diff', |
| 800 'nag_max', | 805 'nag_max', |
| 801 'nag_timer', | 806 'nag_timer', |
| 802 'pack', | 807 'pack', |
| 803 'UpdateSubmoduleConfig', | 808 'UpdateSubmoduleConfig', |
| 804 'relpath', | 809 'relpath', |
| 805 'revert', | 810 'revert', |
| 806 'revinfo', | 811 'revinfo', |
| 807 'runhooks', | 812 'runhooks', |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1193 | 1198 |
| 1194 if __name__ == '__main__': | 1199 if __name__ == '__main__': |
| 1195 if '-v' in sys.argv: | 1200 if '-v' in sys.argv: |
| 1196 logging.basicConfig( | 1201 logging.basicConfig( |
| 1197 level=logging.DEBUG, | 1202 level=logging.DEBUG, |
| 1198 format='%(asctime).19s %(levelname)s %(filename)s:' | 1203 format='%(asctime).19s %(levelname)s %(filename)s:' |
| 1199 '%(lineno)s %(message)s') | 1204 '%(lineno)s %(message)s') |
| 1200 unittest.main() | 1205 unittest.main() |
| 1201 | 1206 |
| 1202 # vim: ts=2:sw=2:tw=80:et: | 1207 # vim: ts=2:sw=2:tw=80:et: |
| OLD | NEW |