| Index: tests/presubmit_unittest.py
|
| diff --git a/tests/presubmit_unittest.py b/tests/presubmit_unittest.py
|
| index 4be5daffeb0653989cc74564c29688d94bf8dcf8..84d9adda2699e451280dbb9067a16fc34bb73415 100755
|
| --- a/tests/presubmit_unittest.py
|
| +++ b/tests/presubmit_unittest.py
|
| @@ -167,7 +167,7 @@ class PresubmitUnittest(PresubmitTestsBase):
|
| members = [
|
| 'AffectedFile', 'Change', 'DoGetTrySlaves', 'DoPresubmitChecks',
|
| 'GetTrySlavesExecuter', 'GitAffectedFile', 'CallCommand', 'CommandData',
|
| - 'GitChange', 'InputApi', 'ListRelevantPresubmitFiles', 'Main',
|
| + 'GitChange', 'InputApi', 'ListRelevantPresubmitFiles', 'main',
|
| 'NonexistantCannedCheckFilter', 'OutputApi', 'ParseFiles',
|
| 'PresubmitFailure', 'PresubmitExecuter', 'PresubmitOutput', 'ScanSubDirs',
|
| 'SvnAffectedFile', 'SvnChange', 'cPickle', 'cpplint', 'cStringIO',
|
| @@ -1152,7 +1152,7 @@ def CheckChangeOnCommit(input_api, output_api):
|
|
|
| self.assertEquals(
|
| True,
|
| - presubmit.Main(['--root', self.fake_root_dir, 'random_file.txt']))
|
| + presubmit.main(['--root', self.fake_root_dir, 'random_file.txt']))
|
|
|
| def testMainUnversionedFail(self):
|
| # OptParser calls presubmit.os.path.exists and is a pain when mocked.
|
| @@ -1170,7 +1170,7 @@ def CheckChangeOnCommit(input_api, output_api):
|
| self.mox.ReplayAll()
|
|
|
| try:
|
| - presubmit.Main(['--root', self.fake_root_dir])
|
| + presubmit.main(['--root', self.fake_root_dir])
|
| self.fail()
|
| except SystemExit, e:
|
| self.assertEquals(2, e.code)
|
|
|