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: Id746a6bc4a51eca5f024211df4d28f93b862e4b2 Closes-Bug: #1329757
This commit is contained in:
parent
5700c2f988
commit
c3a73ebe18
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue