]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Replace assertEquals with assertEqual - 2/2
authorZhongyue Luo <zhongyue.nah@intel.com>
Fri, 16 Aug 2013 01:55:54 +0000 (09:55 +0800)
committerZhongyue Luo <zhongyue.nah@intel.com>
Mon, 9 Sep 2013 07:50:56 +0000 (15:50 +0800)
commit207a7825fbcc69c4c3d4bfefd8e9c33978162ed9
treec957781cdc807c9fd8dcff9314861153d4776a28
parent7f1b0946a843deec3a4a4a9261456c7432999edb
Replace assertEquals with assertEqual - 2/2

The method assertEquals has been deprecated since python 2.7.
http://docs.python.org/2/library/unittest.html#deprecated-aliases

Also in Python 3, a deprecated warning is raised when using assertEquals
therefore we should use assertEqual instead.

This patch replaces the remaining assertEquals to assertEqual

Change-Id: I4e726ce414382e0d5bf982fad20363d61e00967a
21 files changed:
cinder/tests/api/v1/test_volumes.py
cinder/tests/db/test_qos_specs.py
cinder/tests/db/test_transfers.py
cinder/tests/image/test_glance.py
cinder/tests/test_backup_ceph.py
cinder/tests/test_block_device.py
cinder/tests/test_create_volume_flow.py
cinder/tests/test_exception.py
cinder/tests/test_glusterfs.py
cinder/tests/test_huawei_t_dorado.py
cinder/tests/test_image_utils.py
cinder/tests/test_nfs.py
cinder/tests/test_rbd.py
cinder/tests/test_utils.py
cinder/tests/test_vmware_vmdk.py
cinder/tests/test_volume_transfer.py
cinder/tests/test_volume_types_extra_specs.py
cinder/tests/test_volume_utils.py
cinder/tests/test_xenapi_sm.py
cinder/tests/test_xiv_ds8k.py
cinder/tests/test_zadara.py