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

This commit is contained in:
Jenkins 2017-09-12 22:15:46 +00:00 committed by Gerrit Code Review
commit 6f4ee8e610
1 changed files with 10 additions and 10 deletions

View File

@ -100,18 +100,18 @@ class ServiceStatusTestCase(test_utils.CharmTestCase):
def test_get_peer_units_no_peers(self):
self.relation_ids.return_value = ['mon:1']
self.related_units.return_value = []
self.assertEquals({'ceph-mon1': True},
hooks.get_peer_units())
self.assertEqual({'ceph-mon1': True},
hooks.get_peer_units())
def test_get_peer_units_peers_incomplete(self):
self.relation_ids.return_value = ['mon:1']
self.related_units.return_value = ['ceph-mon2',
'ceph-mon3']
self.relation_get.return_value = None
self.assertEquals({'ceph-mon1': True,
'ceph-mon2': False,
'ceph-mon3': False},
hooks.get_peer_units())
self.assertEqual({'ceph-mon1': True,
'ceph-mon2': False,
'ceph-mon3': False},
hooks.get_peer_units())
def test_get_peer_units_peers_complete(self):
self.relation_ids.return_value = ['mon:1']
@ -119,7 +119,7 @@ class ServiceStatusTestCase(test_utils.CharmTestCase):
'ceph-mon3']
self.relation_get.side_effect = ['ceph-mon2',
'ceph-mon3']
self.assertEquals({'ceph-mon1': True,
'ceph-mon2': True,
'ceph-mon3': True},
hooks.get_peer_units())
self.assertEqual({'ceph-mon1': True,
'ceph-mon2': True,
'ceph-mon3': True},
hooks.get_peer_units())