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

Side by Side Diff: tests/trychange_unittest.py

Issue 6690034: Add more python 2.5 compatibility. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Don't force python 2.5 anymore (to be done in a separate change) Created 9 years, 8 months 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
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/env python
2 # Copyright (c) 2010 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2011 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 trychange.py.""" 6 """Unit tests for trychange.py."""
7 7
8 # pylint: disable=E1103,W0403 8 # pylint: disable=E1103,W0403
9 9
10 # Fixes include path. 10 # Fixes include path.
11 from super_mox import SuperMoxTestBase 11 from super_mox import SuperMoxTestBase
12 12
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 self.mox.ReplayAll() 100 self.mox.ReplayAll()
101 git = trychange.GIT(self.options, self.fake_root) 101 git = trychange.GIT(self.options, self.fake_root)
102 self.assertEqual(git.GetFileNames(), self.expected_files) 102 self.assertEqual(git.GetFileNames(), self.expected_files)
103 self.assertEqual(git.checkout_root, self.fake_root) 103 self.assertEqual(git.checkout_root, self.fake_root)
104 self.assertEqual(git.GenerateDiff(), 'A diff') 104 self.assertEqual(git.GenerateDiff(), 'A diff')
105 105
106 106
107 if __name__ == '__main__': 107 if __name__ == '__main__':
108 import unittest 108 import unittest
109 unittest.main() 109 unittest.main()
OLDNEW
« tests/owners_unittest.py ('K') | « tests/trial_dir.py ('k') | tests/watchlists_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698