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

Unified Diff: testing_support/auto_stub.py

Issue 14602008: Rename assertEquals to assertEqual in auto_stub.py. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing_support/auto_stub.py
diff --git a/testing_support/auto_stub.py b/testing_support/auto_stub.py
index 5a2b398c3585b904cb3525b766f8ba6f6eab5111..8ad4bbe74433a768011ea8fe595f2a5cc4f370c0 100644
--- a/testing_support/auto_stub.py
+++ b/testing_support/auto_stub.py
@@ -62,19 +62,19 @@ class SimpleMock(object):
"""
self.calls = []
self.unit_test = unit_test
- self.assertEquals = unit_test.assertEquals
+ self.assertEqual = unit_test.assertEqual
def pop_calls(self):
"""Returns the list of calls up to date.
- Good to do self.assertEquals(expected, mock.pop_calls()).
+ Good to do self.assertEqual(expected, mock.pop_calls()).
"""
calls = self.calls
self.calls = []
return calls
def check_calls(self, expected):
- self.assertEquals(expected, self.pop_calls())
+ self.assertEqual(expected, self.pop_calls())
def _register_call(self, *args, **kwargs):
"""Registers the name of the caller function."""
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698