change assert(Not)Equals to assert(Not)Equal

According to http://docs.python.org/2/library/unittest.html
assert(Not)Equals is a deprecated alias of assert(Not)Equal.

Change-Id: I17bc8fef4090098f3d7e8670cfc34b327ec0210e
Closes-Bug: #1329757
This commit is contained in:
zhangyangyang 2017-09-11 21:36:52 +08:00
parent 4e4c949561
commit 195deb4355
1 changed files with 3 additions and 3 deletions

View File

@ -34,14 +34,14 @@ class TestCinderContext(CharmTestCase):
def test_ceph_not_related(self):
self.is_relation_made.return_value = False
self.assertEquals(contexts.CephSubordinateContext()(), {})
self.assertEqual(contexts.CephSubordinateContext()(), {})
def test_ceph_related(self):
self.is_relation_made.return_value = True
self.get_os_codename_package.return_value = "havana"
service = 'mycinder'
self.service_name.return_value = service
self.assertEquals(
self.assertEqual(
contexts.CephSubordinateContext()(),
{"cinder": {
"/etc/cinder/cinder.conf": {
@ -63,7 +63,7 @@ class TestCinderContext(CharmTestCase):
self.get_os_codename_package.return_value = "icehouse"
service = 'mycinder'
self.service_name.return_value = service
self.assertEquals(
self.assertEqual(
contexts.CephSubordinateContext()(),
{"cinder": {
"/etc/cinder/cinder.conf": {