1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-26 14:08:21 +00:00

assertEquals is deprecated (#7777)

This commit is contained in:
Paulus Schoutsen
2017-05-25 22:21:22 -07:00
committed by GitHub
parent d0c9d6b69a
commit 6899c7b6f7
6 changed files with 24 additions and 24 deletions

View File

@@ -117,7 +117,7 @@ class TestDateUtil(unittest.TestCase):
# confirm the ability to handle a string passed in
delta = dt_util.as_timestamp("2016-01-01 12:12:12")
delta -= dt_util.as_timestamp("2016-01-01 12:12:11")
self.assertEquals(1, delta)
self.assertEqual(1, delta)
def test_parse_datetime_converts_correctly(self):
"""Test parse_datetime converts strings."""