OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # | 2 # |
3 # Copyright 2008-2009 Google Inc. All Rights Reserved. | 3 # Copyright 2008-2009 Google Inc. All Rights Reserved. |
4 # | 4 # |
5 # Licensed under the Apache License, Version 2.0 (the "License"); | 5 # Licensed under the Apache License, Version 2.0 (the "License"); |
6 # you may not use this file except in compliance with the License. | 6 # you may not use this file except in compliance with the License. |
7 # You may obtain a copy of the License at | 7 # You may obtain a copy of the License at |
8 # | 8 # |
9 # http://www.apache.org/licenses/LICENSE-2.0 | 9 # http://www.apache.org/licenses/LICENSE-2.0 |
10 # | 10 # |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 def setUp(self): | 58 def setUp(self): |
59 BaseTestCase.setUp(self) | 59 BaseTestCase.setUp(self) |
60 self.root_dir = self.Dir() | 60 self.root_dir = self.Dir() |
61 self.args = self.Args() | 61 self.args = self.Args() |
62 self.url = self.Url() | 62 self.url = self.Url() |
63 self.relpath = 'asf' | 63 self.relpath = 'asf' |
64 | 64 |
65 def testDir(self): | 65 def testDir(self): |
66 members = [ | 66 members = [ |
67 'COMMAND', 'Capture', 'CaptureHeadRevision', 'CaptureInfo', | 67 'COMMAND', 'Capture', 'CaptureHeadRevision', 'CaptureInfo', |
68 'CaptureStatus', 'DiffItem', 'GetEmail', | 68 'CaptureStatus', 'DiffItem', 'GetCheckoutRoot', 'GetEmail', |
69 'GetFileProperty', 'IsMoved', 'ReadSimpleAuth', 'Run', | 69 'GetFileProperty', 'IsMoved', 'ReadSimpleAuth', 'Run', |
70 'RunAndFilterOutput', 'RunAndGetFileList', | 70 'RunAndFilterOutput', 'RunAndGetFileList', |
71 'RunCommand', 'cleanup', 'diff', 'export', 'pack', 'relpath', 'revert', | 71 'RunCommand', 'cleanup', 'diff', 'export', 'pack', 'relpath', 'revert', |
72 'revinfo', 'runhooks', 'scm_name', 'status', 'update', 'url', | 72 'revinfo', 'runhooks', 'scm_name', 'status', 'update', 'url', |
73 ] | 73 ] |
74 | 74 |
75 # If you add a member, be sure to add the relevant test! | 75 # If you add a member, be sure to add the relevant test! |
76 self.compareMembers(self._scm_wrapper(), members) | 76 self.compareMembers(self._scm_wrapper(), members) |
77 | 77 |
78 def testUnsupportedSCM(self): | 78 def testUnsupportedSCM(self): |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 relpath=self.relpath) | 528 relpath=self.relpath) |
529 rev_info = scm.revinfo(options, (), None) | 529 rev_info = scm.revinfo(options, (), None) |
530 self.assertEquals(rev_info, '069c602044c5388d2d15c3f875b057c852003458') | 530 self.assertEquals(rev_info, '069c602044c5388d2d15c3f875b057c852003458') |
531 | 531 |
532 | 532 |
533 if __name__ == '__main__': | 533 if __name__ == '__main__': |
534 import unittest | 534 import unittest |
535 unittest.main() | 535 unittest.main() |
536 | 536 |
537 # vim: ts=2:sw=2:tw=80:et: | 537 # vim: ts=2:sw=2:tw=80:et: |
OLD | NEW |