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: I4cc9976ba8c18447803f7e7e8843fb0b8139b612 Closes-Bug: #1329757
This commit is contained in:
parent
46796e503e
commit
9e47bad656
|
@ -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):
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue