Use assertEqual instead of assertEquals in unitttest

Bug #1256734 reported by Sergio Cazzolato
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Undecided
Sergio Cazzolato

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 glance:
assignee: nobody → Sergio Cazzolato (sergio-j-cazzolato)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

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

Changed in glance:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/59514
Committed: http://github.com/openstack/glance/commit/5fc030cce44ca0849cc3d2c1830ead6804c70cf9
Submitter: Jenkins
Branch: master

commit 5fc030cce44ca0849cc3d2c1830ead6804c70cf9
Author: Sergio Cazzolato <email address hidden>
Date: Thu Nov 28 21:58:09 2013 -0500

    Use assertEqual instead of assertEquals in unit tests

    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.

    Change-Id: Ic8f152766d70146300b74f3803d7dab1e4de50e2
    Closes-Bug: #1256734

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: none → icehouse-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: icehouse-1 → 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.