Replace assertEquals with assertEqual

The method assertEquals has been deprecated since python 2.7.
http://docs.python.org/2/library/unittest.html#deprecated-aliases

Also in Python 3, a deprecated warning is raised when using assertEquals
therefore we should use assertEqual instead.

This is part of blueprint assertequal

Change-Id: I2835955e53abd0df56c817b2cbb186bd7fe99985
This commit is contained in:
Luong Anh Tuan 2016-11-21 15:53:27 +07:00
parent 7ef12b7580
commit 2513add3a9
1 changed files with 1 additions and 1 deletions

View File

@ -49,4 +49,4 @@ class TestServerManager(testtools.TestCase):
serv = worker_server.Server(self.config)
serv_config = serv.config
self.assertIn("extra_configuration", serv_config)
self.assertEquals("testing123", serv_config["extra_configuration"])
self.assertEqual("testing123", serv_config["extra_configuration"])