change assertEquals to assertEqual
According to http://docs.python.org/2/library/unittest.html assertEquals is a deprecated alias of assertEqual. Change-Id: I4030e9f9b184af60eb9253b3a1d7e1cc929d502d
This commit is contained in:
parent
39f6bba5c4
commit
484ffc5326
@ -397,7 +397,7 @@ class TestLoadbalancerPlugin(
|
|||||||
data,
|
data,
|
||||||
member['member']['id'])
|
member['member']['id'])
|
||||||
raw_res = req.get_response(self.ext_api)
|
raw_res = req.get_response(self.ext_api)
|
||||||
self.assertEquals(web_exc.HTTPOk.code, raw_res.status_int)
|
self.assertEqual(web_exc.HTTPOk.code, raw_res.status_int)
|
||||||
res = self.deserialize(self.fmt, raw_res)
|
res = self.deserialize(self.fmt, raw_res)
|
||||||
for k, v in keys:
|
for k, v in keys:
|
||||||
self.assertEqual(res['member'][k], v)
|
self.assertEqual(res['member'][k], v)
|
||||||
|
Loading…
Reference in New Issue
Block a user