]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Use assertAlmostEqual instead of failUnlessAlmostEqual in unit tests
authorSergio Cazzolato <sergio.j.cazzolato@intel.com>
Fri, 29 Nov 2013 05:38:44 +0000 (00:38 -0500)
committerSergio Cazzolato <sergio.j.cazzolato@intel.com>
Fri, 29 Nov 2013 05:38:44 +0000 (00:38 -0500)
commit5896966d40884a7bdba2878386ef8f2966d08d1a
tree1a72a02401bedce879887a19a59869ed6bb2a810
parentd3a6d29aef60bdc90c8762875fdf20ecbdfb4bb4
Use assertAlmostEqual instead of failUnlessAlmostEqual in unit tests

The method failUnlessAlmostEqual 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
failUnlessAlmostEqual therefore we should use assertAlmostEqual instead.

Change-Id: Ic9947028afdb5b1ba8f19103018a6f1bc3fc551f
Closes-Bug: #1257068
cinder/tests/api/v1/test_limits.py
cinder/tests/api/v2/test_limits.py