]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Replace assertEquals with assertEqual - 1/2
authorZhongyue Luo <zhongyue.nah@intel.com>
Sat, 7 Sep 2013 07:57:20 +0000 (15:57 +0800)
committerZhongyue Luo <zhongyue.nah@intel.com>
Sun, 8 Sep 2013 13:42:26 +0000 (21:42 +0800)
commit7f1b0946a843deec3a4a4a9261456c7432999edb
treedfe728dbd9580402ce50e192247569906a1d5e7e
parent326ef789e6892dd3520f676fb1e05aeefd7567e8
Replace assertEquals with assertEqual - 1/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 is a mere sed replace of one-liner assertEquals to assertEqual.

grep -lR "assertEquals(" cinder/tests/* | \
xargs sed -ri 's/(\W+self.assertEqual)s(.+)(\)$)/\1\2\3/'

Change-Id: I4feea94d53afa866af9b7e14bd80345fa7276e75
54 files changed:
cinder/tests/api/contrib/test_admin_actions.py
cinder/tests/api/contrib/test_backups.py
cinder/tests/api/contrib/test_qos_specs_manage.py
cinder/tests/api/contrib/test_quotas.py
cinder/tests/api/contrib/test_types_extra_specs.py
cinder/tests/api/contrib/test_types_manage.py
cinder/tests/api/contrib/test_volume_transfer.py
cinder/tests/api/contrib/test_volume_type_encryption.py
cinder/tests/api/middleware/test_sizelimit.py
cinder/tests/api/v1/test_snapshots.py
cinder/tests/api/v1/test_volumes.py
cinder/tests/api/v2/test_snapshots.py
cinder/tests/api/v2/test_volumes.py
cinder/tests/brick/test_brick_connector.py
cinder/tests/brick/test_brick_linuxfc.py
cinder/tests/brick/test_brick_linuxscsi.py
cinder/tests/db/test_name_id.py
cinder/tests/db/test_qos_specs.py
cinder/tests/db/test_transfers.py
cinder/tests/image/test_glance.py
cinder/tests/integrated/test_volumes.py
cinder/tests/keymgr/test_key.py
cinder/tests/scheduler/test_scheduler_options.py
cinder/tests/test_backup.py
cinder/tests/test_backup_ceph.py
cinder/tests/test_backup_swift.py
cinder/tests/test_block_device.py
cinder/tests/test_context.py
cinder/tests/test_db_api.py
cinder/tests/test_drivers_compatibility.py
cinder/tests/test_exception.py
cinder/tests/test_glusterfs.py
cinder/tests/test_gpfs.py
cinder/tests/test_hp3par.py
cinder/tests/test_image_utils.py
cinder/tests/test_migrations.py
cinder/tests/test_netapp_nfs.py
cinder/tests/test_nexenta.py
cinder/tests/test_qos_specs.py
cinder/tests/test_rbd.py
cinder/tests/test_service.py
cinder/tests/test_storwize_svc.py
cinder/tests/test_utils.py
cinder/tests/test_vmware_vmdk.py
cinder/tests/test_volume.py
cinder/tests/test_volume_configuration.py
cinder/tests/test_volume_glance_metadata.py
cinder/tests/test_volume_transfer.py
cinder/tests/test_volume_types.py
cinder/tests/test_volume_types_extra_specs.py
cinder/tests/test_volume_utils.py
cinder/tests/test_windows.py
cinder/tests/test_wsgi.py
cinder/tests/test_xenapi_sm.py