Commit 40f35c32 authored by maruel@chromium.org's avatar maruel@chromium.org

Fix unit tests (mostly esthetical)

TEST=none
BUG=none
TBR=bradnelson

Review URL: http://codereview.chromium.org/517068

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@35767 0039d316-1c4b-4281-b951-d872f2087c98
parent f3909bf2
......@@ -42,7 +42,7 @@ class TryChangeUnittest(TryChangeTestsBase):
'EscapeDot', 'GIT', 'GuessVCS',
'HELP_STRING', 'InvalidScript', 'NoTryServerAccess', 'PrintSuccess',
'SCM', 'SVN', 'TryChange', 'USAGE',
'breakpad', 'datetime', 'gclient_utils', 'getpass', 'logging',
'breakpad', 'datetime', 'errno', 'gclient_utils', 'getpass', 'logging',
'optparse', 'os', 'posixpath', 'scm', 'shutil', 'sys', 'tempfile',
'urllib',
]
......@@ -56,7 +56,7 @@ class SVNUnittest(TryChangeTestsBase):
members = [
'AutomagicalSettings', 'GclStyleSettings', 'GclientStyleSettings',
'GetCodeReviewSetting', 'ReadRootFile',
'GenerateDiff', 'GetFileNames', 'GetLocalRoot',
'GenerateDiff', 'GetFileNames',
]
# If this test fails, you should add the relevant test.
self.compareMembers(trychange.SVN, members)
......@@ -71,7 +71,7 @@ class SVNUnittest(TryChangeTestsBase):
self.mox.ReplayAll()
svn = trychange.SVN(self.options, self.fake_root)
self.assertEqual(svn.GetFileNames(), self.expected_files)
self.assertEqual(svn.GetLocalRoot(), self.fake_root)
self.assertEqual(svn.checkout_root, self.fake_root)
self.assertEqual(svn.GenerateDiff(), 'A diff')
......@@ -81,7 +81,7 @@ class GITUnittest(TryChangeTestsBase):
members = [
'AutomagicalSettings', 'GclStyleSettings', 'GclientStyleSettings',
'GetCodeReviewSetting', 'ReadRootFile',
'GenerateDiff', 'GetFileNames', 'GetLocalRoot',
'GenerateDiff', 'GetFileNames',
]
# If this test fails, you should add the relevant test.
self.compareMembers(trychange.GIT, members)
......@@ -96,7 +96,7 @@ class GITUnittest(TryChangeTestsBase):
self.mox.ReplayAll()
git = trychange.GIT(self.options, self.fake_root)
self.assertEqual(git.GetFileNames(), self.expected_files)
self.assertEqual(git.GetLocalRoot(), self.fake_root)
self.assertEqual(git.checkout_root, self.fake_root)
self.assertEqual(git.GenerateDiff(), 'A diff')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment