Commit 6b4a6545 authored by maruel@chromium.org's avatar maruel@chromium.org

Rename assertEquals to assertEqual in auto_stub.py.

assertEquals is deprecated.

R=iannucci@chromium.org
BUG=

Review URL: https://chromiumcodereview.appspot.com/14602008

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@199316 0039d316-1c4b-4281-b951-d872f2087c98
parent 4572a091
......@@ -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."""
......
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