Quiesce assertAlmostEquals deprecation warning

Last of the low-hanging fruit in Glance testlog verbosity,
let's get rid of a deprecation warning around usage of
assertAlmostEquals().

Change-Id: I9c01887d46d6504dd77bd04cab4c07f4bc0506fa
This commit is contained in:
Thierry Carrez 2019-04-03 17:24:18 +02:00
parent 117cecfb4c
commit cae8e682cd
1 changed files with 2 additions and 2 deletions

View File

@ -74,8 +74,8 @@ class TimeUtilsTest(test_utils.BaseTestCase):
before = timeutils.utcnow()
after = before + datetime.timedelta(days=7, seconds=59,
microseconds=123456)
self.assertAlmostEquals(604859.123456,
timeutils.delta_seconds(before, after))
self.assertAlmostEqual(604859.123456,
timeutils.delta_seconds(before, after))
def test_iso8601_from_timestamp(self):
utcnow = timeutils.utcnow()