Use assertEqual instead of assertEquals in unitttest

Bug #1256738 reported by Sergio Cazzolato
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Avishay Traeger

Bug Description

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.

Changed in cinder:
assignee: nobody → Sergio Cazzolato (sergio-j-cazzolato)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/59521

Changed in cinder:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/59643

Changed in cinder:
assignee: Sergio Cazzolato (sergio-j-cazzolato) → Avishay Traeger (avishay-il)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/59643
Committed: http://github.com/openstack/cinder/commit/aa453576ff13c97c63dcb3cd5941675ffdc93360
Submitter: Jenkins
Branch: master

commit aa453576ff13c97c63dcb3cd5941675ffdc93360
Author: Avishay Traeger <email address hidden>
Date: Tue Dec 3 09:44:35 2013 +0200

    Update hacking to hacking>=0.8.0,<0.9

    Update hacking version to match version specified in requirements repo.

    Fixed the following issues, which the newer version checks for:
    print "" -> print("")
    self.assertEquals -> self.assertEqual
    self.assertNotEquals -> self.assertNotEqual

    Change-Id: Ic4b70fd8f565cda28e23fe6b1da0e278f949373c
    Closes-Bug: #1256738
    Closes-Bug: #1256737
    Closes-Bug: #1257274

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in cinder:
milestone: none → icehouse-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: icehouse-2 → 2014.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.