From 195deb43555b635b4c420bd843fc8a2fd0fd8de9 Mon Sep 17 00:00:00 2001 From: zhangyangyang Date: Mon, 11 Sep 2017 21:36:52 +0800 Subject: [PATCH] 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 --- unit_tests/test_cinder_contexts.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unit_tests/test_cinder_contexts.py b/unit_tests/test_cinder_contexts.py index 87d0f1f..1c87a3c 100644 --- a/unit_tests/test_cinder_contexts.py +++ b/unit_tests/test_cinder_contexts.py @@ -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": {