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

Unified Diff: tests/trychange_unittest.py

Issue 562031: Fix licensing headers and move most third party code to third_party/... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: '' Created 10 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: tests/trychange_unittest.py
===================================================================
--- tests/trychange_unittest.py (revision 37929)
+++ tests/trychange_unittest.py (working copy)
@@ -1,15 +1,14 @@
#!/usr/bin/python
-# Copyright (c) 2009 The Chromium Authors. All rights reserved.
+# Copyright (c) 2010 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Unit tests for trychange.py."""
-import optparse
+# Fixes include path.
+from super_mox import mox, SuperMoxTestBase
-# Local imports
import trychange
-from super_mox import mox, SuperMoxTestBase
class TryChangeTestsBase(SuperMoxTestBase):
@@ -28,7 +27,7 @@
self.mox.StubOutWithMock(trychange.scm.SVN, 'GetEmail')
self.fake_root = self.Dir()
self.expected_files = ['foo.txt', 'bar.txt']
- self.options = optparse.Values()
+ self.options = trychange.optparse.Values()
self.options.files = self.expected_files
self.options.diff = None
self.options.name = None
Property changes on: tests/trychange_unittest.py
___________________________________________________________________
Added: svn:executable
+ *
« tests/gclient_scm_test.py ('K') | « tests/super_mox.py ('k') | third_party/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698