| 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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 self.enabled = self.CreateGitRepo(self.sample_git_import, self.base_path) | 353 self.enabled = self.CreateGitRepo(self.sample_git_import, self.base_path) |
| 354 SuperMoxBaseTestBase.setUp(self) | 354 SuperMoxBaseTestBase.setUp(self) |
| 355 | 355 |
| 356 def tearDown(self): | 356 def tearDown(self): |
| 357 SuperMoxBaseTestBase.tearDown(self) | 357 SuperMoxBaseTestBase.tearDown(self) |
| 358 shutil.rmtree(self.root_dir) | 358 shutil.rmtree(self.root_dir) |
| 359 | 359 |
| 360 def testDir(self): | 360 def testDir(self): |
| 361 members = [ | 361 members = [ |
| 362 'COMMAND', 'Capture', 'CaptureStatus', 'FetchUpstreamTuple', | 362 'COMMAND', 'Capture', 'CaptureStatus', 'FetchUpstreamTuple', |
| 363 'GenerateDiff', 'GetBranchRef', 'GetEmail', 'GetSVNBranch', | 363 'GenerateDiff', 'GetBranch', 'GetBranchRef', 'GetCheckoutRoot', |
| 364 'GetEmail', 'GetPatchName', 'GetSVNBranch', |
| 364 'GetUpstream', 'IsGitSvn', 'ShortBranchName', | 365 'GetUpstream', 'IsGitSvn', 'ShortBranchName', |
| 365 'RunCommand', 'cleanup', 'diff', 'export', 'relpath', 'revert', | 366 'RunCommand', 'cleanup', 'diff', 'export', 'relpath', 'revert', |
| 366 'revinfo', 'runhooks', 'scm_name', 'status', 'update', 'url', | 367 'revinfo', 'runhooks', 'scm_name', 'status', 'update', 'url', |
| 367 ] | 368 ] |
| 368 | 369 |
| 369 # If you add a member, be sure to add the relevant test! | 370 # If you add a member, be sure to add the relevant test! |
| 370 self.compareMembers(gclient_scm.CreateSCM(url=self.url), members) | 371 self.compareMembers(gclient_scm.CreateSCM(url=self.url), members) |
| 371 | 372 |
| 372 def testRevertMissing(self): | 373 def testRevertMissing(self): |
| 373 if not self.enabled: | 374 if not self.enabled: |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 relpath=self.relpath) | 531 relpath=self.relpath) |
| 531 rev_info = scm.revinfo(options, (), None) | 532 rev_info = scm.revinfo(options, (), None) |
| 532 self.assertEquals(rev_info, '069c602044c5388d2d15c3f875b057c852003458') | 533 self.assertEquals(rev_info, '069c602044c5388d2d15c3f875b057c852003458') |
| 533 | 534 |
| 534 | 535 |
| 535 if __name__ == '__main__': | 536 if __name__ == '__main__': |
| 536 import unittest | 537 import unittest |
| 537 unittest.main() | 538 unittest.main() |
| 538 | 539 |
| 539 # vim: ts=2:sw=2:tw=80:et: | 540 # vim: ts=2:sw=2:tw=80:et: |
| OLD | NEW |