replace assertEquals with assertEqual

Registered by Gary Kotton

In Python 3, failUnlessEqual and are explicitly deprecated.

Method Name Deprecated alias(es)
assertEqual() failUnlessEqual, assertEquals

http://docs.python.org/3/library/unittest.html

There will be 2 phases:
1. cleanup of the code
2. automatic enforcement

No DocImpact

Blueprint information

Status:
Complete
Approver:
Joe Gordon
Priority:
Low
Drafter:
Gary Kotton
Direction:
Approved
Assignee:
Gary Kotton
Definition:
Approved
Series goal:
Accepted for icehouse
Implementation:
Implemented
Milestone target:
milestone icon 2014.1
Started by
Gary Kotton
Completed by
Russell Bryant

Related branches

Sprints

Whiteboard

Can you update the description with more information. It's not clear why you're changing to assertEqual. If both are aliases to something that's being deprecated then why is one better than the other?

Gerrit topic: https://review.openstack.org/#q,topic:bp/assertequal,n,z

Addressed by: https://review.openstack.org/44237
    libvirt tests: replace assertEquals with assertEqual

Addressed by: https://review.openstack.org/49725
    hyperv tests: replace assertEquals with assertEqual

Addressed by: https://review.openstack.org/44238
    VMware tests: replace assertEquals with assertEqual

Addressed by: https://review.openstack.org/44243
    powervm tests: replace assertEquals with assertEqual

Addressed by: https://review.openstack.org/44239
    xen tests: replace assertEquals with assertEqual

Addressed by: https://review.openstack.org/50537
    Replace assertEquals with assertEqual - tests/api

Gerrit topic: https://review.openstack.org/#q,topic:assertEqual_oneliner,n,z

Addressed by: https://review.openstack.org/45161
    Replace assertEquals with assertEqual - etc

Gerrit topic: https://review.openstack.org/#q,topic:assertEqual_multiline,n,z

Addressed by: https://review.openstack.org/45170
    Replace assertEquals with assertEqual - multiline

Addressed by: https://review.openstack.org/54122
    compute tests: replace assertEquals with assertEqual

Addressed by: https://review.openstack.org/54126
    network tests: replace assertEquals with assertEqual

Addressed by: https://review.openstack.org/54135
    db tests: replace assertEquals with assertEqual

Addressed by: https://review.openstack.org/54461
    Replace assertEquals with assertEqual - tests/scheduler

Addressed by: https://review.openstack.org/55830
    key manager tests: replace assertEquals with assertEqual

Addressed by: https://review.openstack.org/55833
    virt root tests: replace assertEquals with assertEqual

Addressed by: https://review.openstack.org/55836
    image tests: replace assertEquals with assertEqual

Addressed by: https://review.openstack.org/55838
    baremetal: replace assertEquals with assertEqual

Addressed by: https://review.openstack.org/55840
    driver tests (loose ends): replace assertEquals with assertEqual

Addressed by: https://review.openstack.org/56334
    replace assertNotEquals with assertNotEqual

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.