Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: tests/gcl_unittest.py

Issue 11412161: Rollback UpgradeToHttps for viewvc links (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « git_cl.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 gcl.py.""" 6 """Unit tests for gcl.py."""
7 7
8 # pylint: disable=E1103,E1101,E1120 8 # pylint: disable=E1103,E1101,E1120
9 9
10 import os 10 import os
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 self.mockPresubmit(change_info, fail=False) 575 self.mockPresubmit(change_info, fail=False)
576 self.mockCommit( 576 self.mockCommit(
577 change_info, 'deescription\nReview URL: https://my_server/1', 577 change_info, 'deescription\nReview URL: https://my_server/1',
578 '\nCommitted revision 12345') 578 '\nCommitted revision 12345')
579 579
580 self.mox.ReplayAll() 580 self.mox.ReplayAll()
581 581
582 retval = gcl.CMDcommit(['naame']) 582 retval = gcl.CMDcommit(['naame'])
583 self.assertEquals(retval, 0) 583 self.assertEquals(retval, 0)
584 self.assertEquals(change_info.description, 584 self.assertEquals(change_info.description,
585 'deescription\n\nCommitted: https://view/12345') 585 'deescription\n\nCommitted: http://view/12345')
586 # pylint: disable=W0212 586 # pylint: disable=W0212
587 self.assertTrue(change_info._deleted) 587 self.assertTrue(change_info._deleted)
588 self.assertTrue(change_info._closed) 588 self.assertTrue(change_info._closed)
589 589
590 590
591 if __name__ == '__main__': 591 if __name__ == '__main__':
592 import unittest 592 import unittest
593 unittest.main() 593 unittest.main()
OLDNEW
« no previous file with comments | « git_cl.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698