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:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user