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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 'time', | 66 'time', |
67 'ValidateEmail', | 67 'ValidateEmail', |
68 ] | 68 ] |
69 # If this test fails, you should add the relevant test. | 69 # If this test fails, you should add the relevant test. |
70 self.compareMembers(scm, members) | 70 self.compareMembers(scm, members) |
71 | 71 |
72 | 72 |
73 class GitWrapperTestCase(BaseSCMTestCase): | 73 class GitWrapperTestCase(BaseSCMTestCase): |
74 def testMembersChanged(self): | 74 def testMembersChanged(self): |
75 members = [ | 75 members = [ |
| 76 'ApplyEnvVars', |
76 'AssertVersion', | 77 'AssertVersion', |
77 'Capture', | 78 'Capture', |
78 'CaptureStatus', | 79 'CaptureStatus', |
79 'current_version', | 80 'current_version', |
80 'FetchUpstreamTuple', | 81 'FetchUpstreamTuple', |
81 'GenerateDiff', | 82 'GenerateDiff', |
82 'GetBlessedSha1ForSvnRev', | 83 'GetBlessedSha1ForSvnRev', |
83 'GetBranch', | 84 'GetBranch', |
84 'GetBranchRef', | 85 'GetBranchRef', |
85 'GetCheckoutRoot', | 86 'GetCheckoutRoot', |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 # Asserting the tree is not sufficient, svn status must come out clear too. | 482 # Asserting the tree is not sufficient, svn status must come out clear too. |
482 self.assertEquals('', self._capture(['status'])) | 483 self.assertEquals('', self._capture(['status'])) |
483 | 484 |
484 | 485 |
485 if __name__ == '__main__': | 486 if __name__ == '__main__': |
486 if '-v' in sys.argv: | 487 if '-v' in sys.argv: |
487 logging.basicConfig(level=logging.DEBUG) | 488 logging.basicConfig(level=logging.DEBUG) |
488 unittest.main() | 489 unittest.main() |
489 | 490 |
490 # vim: ts=2:sw=2:tw=80:et: | 491 # vim: ts=2:sw=2:tw=80:et: |
OLD | NEW |