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

Unified Diff: tests/presubmit_unittest.py

Issue 556092: Remove stale revert.py unit test and fix another test I broke in r37487. (Closed)
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
« no previous file with comments | « PRESUBMIT.py ('k') | tests/revert_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/presubmit_unittest.py
diff --git a/tests/presubmit_unittest.py b/tests/presubmit_unittest.py
index 3ed655fadf663994a5bf49fdffd6becb84d4a245..91825c53eddc3c12f4e0f97069b43f65e17903bd 100755
--- a/tests/presubmit_unittest.py
+++ b/tests/presubmit_unittest.py
@@ -734,13 +734,13 @@ class InputApiUnittest(PresubmitTestsBase):
],
[
# Expected.
- 'b.c/.git',
],
),
]
input_api = presubmit.InputApi(None, './PRESUBMIT.py', False)
self.mox.ReplayAll()
+ self.assertEqual(len(input_api.DEFAULT_WHITE_LIST), 20)
self.assertEqual(len(input_api.DEFAULT_BLACK_LIST), 9)
for item in files:
results = filter(input_api.FilterSourceFile, item[0])
@@ -748,7 +748,8 @@ class InputApiUnittest(PresubmitTestsBase):
self.assertEquals(results[i].LocalPath(),
presubmit.normpath(item[1][i]))
# Same number of expected results.
- self.assertEquals(len(results), len(item[1]))
+ self.assertEquals(sorted([f.LocalPath() for f in results]),
+ sorted(item[1]))
def testCustomFilter(self):
def FilterSourceFile(affected_file):
« no previous file with comments | « PRESUBMIT.py ('k') | tests/revert_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698