| 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 scm.py.""" | 6 """Unit tests for scm.py.""" |
| 7 | 7 |
| 8 import logging | 8 import logging |
| 9 import os | 9 import os |
| 10 import sys | 10 import sys |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 class GitWrapperTestCase(BaseSCMTestCase): | 73 class GitWrapperTestCase(BaseSCMTestCase): |
| 74 def testMembersChanged(self): | 74 def testMembersChanged(self): |
| 75 members = [ | 75 members = [ |
| 76 'AssertVersion', | 76 'AssertVersion', |
| 77 'Capture', | 77 'Capture', |
| 78 'CaptureStatus', | 78 'CaptureStatus', |
| 79 'current_version', | 79 'current_version', |
| 80 'FetchUpstreamTuple', | 80 'FetchUpstreamTuple', |
| 81 'GenerateDiff', | 81 'GenerateDiff', |
| 82 'GetBlessedSha1ForSvnRev', |
| 82 'GetBranch', | 83 'GetBranch', |
| 83 'GetBranchRef', | 84 'GetBranchRef', |
| 84 'GetCheckoutRoot', | 85 'GetCheckoutRoot', |
| 85 'GetDifferentFiles', | 86 'GetDifferentFiles', |
| 86 'GetEmail', | 87 'GetEmail', |
| 87 'GetGitSvnHeadRev', | 88 'GetGitSvnHeadRev', |
| 88 'GetPatchName', | 89 'GetPatchName', |
| 89 'GetSha1ForSvnRev', | 90 'GetSha1ForSvnRev', |
| 90 'GetSVNBranch', | 91 'GetSVNBranch', |
| 91 'GetUpstreamBranch', | 92 'GetUpstreamBranch', |
| (...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 # Asserting the tree is not sufficient, svn status must come out clear too. | 467 # Asserting the tree is not sufficient, svn status must come out clear too. |
| 467 self.assertEquals('', self._capture(['status'])) | 468 self.assertEquals('', self._capture(['status'])) |
| 468 | 469 |
| 469 | 470 |
| 470 if __name__ == '__main__': | 471 if __name__ == '__main__': |
| 471 if '-v' in sys.argv: | 472 if '-v' in sys.argv: |
| 472 logging.basicConfig(level=logging.DEBUG) | 473 logging.basicConfig(level=logging.DEBUG) |
| 473 unittest.main() | 474 unittest.main() |
| 474 | 475 |
| 475 # vim: ts=2:sw=2:tw=80:et: | 476 # vim: ts=2:sw=2:tw=80:et: |
| OLD | NEW |