assertEquals is deprecated (#7777)

This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2017-05-25 22:21:22 -07:00
1 parent d0c9d6b69a
commit 6899c7b6f7
6 files changed
+24 -24

No files matched your search

+1 -1
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."""