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
expected = 60.0 / 7.0
results = self._check_sum(1, "POST", "/anything")
- self.failUnlessAlmostEqual(expected, results, 8)
+ self.assertAlmostEqual(expected, results, 8)
def test_delay_GET(self):
"""Ensure the 11th GET will result in NO delay."""
expected = 60.0 / 7.0
results = self._check_sum(1, "POST", "/anything")
- self.failUnlessAlmostEqual(expected, results, 8)
+ self.assertAlmostEqual(expected, results, 8)
def test_delay_GET(self):
"""Ensure the 11th GET will result in NO delay."""