diff --git a/unit_tests/test_ceph_radosgw_context.py b/unit_tests/test_ceph_radosgw_context.py index a69cb62d..68ff4cbe 100644 --- a/unit_tests/test_ceph_radosgw_context.py +++ b/unit_tests/test_ceph_radosgw_context.py @@ -165,7 +165,7 @@ class IdentityServiceContextTest(CharmTestCase): def test_ids_ctxt_no_rels(self, _log, _rids): _rids.return_value = [] ids_ctxt = context.IdentityServiceContext() - self.assertEquals(ids_ctxt(), None) + self.assertEqual(ids_ctxt(), None) class MonContextTest(CharmTestCase): diff --git a/unit_tests/test_hooks.py b/unit_tests/test_hooks.py index 08c677eb..f62f9839 100644 --- a/unit_tests/test_hooks.py +++ b/unit_tests/test_hooks.py @@ -213,8 +213,8 @@ class CephRadosGWTests(CharmTestCase): _config.side_effect = self.test_config.get _unit_get.return_value = ipv6_addr _is_clustered.return_value = False - self.assertEquals(ceph_hooks.canonical_url({}, PUBLIC), - 'http://[%s]' % ipv6_addr) + self.assertEqual(ceph_hooks.canonical_url({}, PUBLIC), + 'http://[%s]' % ipv6_addr) def test_cluster_joined(self): self.get_relation_ip.side_effect = ['10.0.0.1',