Merge "change assert(Not)Equals to assert(Not)Equal"
This commit is contained in:
commit
44c063580d
@ -92,18 +92,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']
|
||||
@ -111,7 +111,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())
|
||||
|
Loading…
Reference in New Issue
Block a user