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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 def testMembersChanged(self): | 197 def testMembersChanged(self): |
198 self.mox.ReplayAll() | 198 self.mox.ReplayAll() |
199 members = [ | 199 members = [ |
200 'AssertVersion', | 200 'AssertVersion', |
201 'Capture', | 201 'Capture', |
202 'CaptureLocalInfo', | 202 'CaptureLocalInfo', |
203 'CaptureRemoteInfo', | 203 'CaptureRemoteInfo', |
204 'CaptureRevision', | 204 'CaptureRevision', |
205 'CaptureStatus', | 205 'CaptureStatus', |
206 'current_version', | 206 'current_version', |
207 'DiffItem', | |
208 'GenerateDiff', | 207 'GenerateDiff', |
209 'GetCheckoutRoot', | 208 'GetCheckoutRoot', |
210 'GetEmail', | 209 'GetEmail', |
211 'GetFileProperty', | 210 'GetFileProperty', |
212 'IsMoved', | 211 'IsMoved', |
213 'IsMovedInfo', | 212 'IsMovedInfo', |
214 'IsValidRevision', | 213 'IsValidRevision', |
215 'ReadSimpleAuth', | 214 'ReadSimpleAuth', |
216 'Revert', | 215 'Revert', |
217 'RunAndGetFileList', | 216 'RunAndGetFileList', |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 # Asserting the tree is not sufficient, svn status must come out clear too. | 466 # Asserting the tree is not sufficient, svn status must come out clear too. |
468 self.assertEquals('', self._capture(['status'])) | 467 self.assertEquals('', self._capture(['status'])) |
469 | 468 |
470 | 469 |
471 if __name__ == '__main__': | 470 if __name__ == '__main__': |
472 if '-v' in sys.argv: | 471 if '-v' in sys.argv: |
473 logging.basicConfig(level=logging.DEBUG) | 472 logging.basicConfig(level=logging.DEBUG) |
474 unittest.main() | 473 unittest.main() |
475 | 474 |
476 # vim: ts=2:sw=2:tw=80:et: | 475 # vim: ts=2:sw=2:tw=80:et: |
OLD | NEW |