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: I4b9e966f4c7cd3df6440f38b56785a38a812e002
Closes-Bug: #1329757
This commit is contained in:
zhangyangyang 2017-09-11 19:04:11 +08:00
parent 6a506d2cfc
commit f87d83b1ab
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ class SwiftStorageUtilsTests(CharmTestCase):
determine_block_devs.return_values = ['/dev/vdb', '/dev/vdc']
mock_is_device_in_ring.return_value = True
swift_utils.setup_storage()
self.assertEquals(self.check_call.call_count, 0)
self.assertEqual(self.check_call.call_count, 0)
def _fake_is_device_mounted(self, device):
if device in ["/dev/sda", "/dev/vda", "/dev/cciss/c0d0"]: