Replace assertEquals and friends with non-deprecated versions. (#12092)

This commit is contained in:
Patrick Cloke 2022-02-28 07:12:29 -05:00 committed by GitHub
parent ab3ef49059
commit 02d708568b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
62 changed files with 888 additions and 889 deletions

View file

@ -103,7 +103,7 @@ class SQLBaseStoreTestCase(unittest.TestCase):
)
)
self.assertEquals("Value", value)
self.assertEqual("Value", value)
self.mock_txn.execute.assert_called_with(
"SELECT retcol FROM tablename WHERE keycol = ?", ["TheKey"]
)
@ -121,7 +121,7 @@ class SQLBaseStoreTestCase(unittest.TestCase):
)
)
self.assertEquals({"colA": 1, "colB": 2, "colC": 3}, ret)
self.assertEqual({"colA": 1, "colB": 2, "colC": 3}, ret)
self.mock_txn.execute.assert_called_with(
"SELECT colA, colB, colC FROM tablename WHERE keycol = ?", ["TheKey"]
)
@ -154,7 +154,7 @@ class SQLBaseStoreTestCase(unittest.TestCase):
)
)
self.assertEquals([{"colA": 1}, {"colA": 2}, {"colA": 3}], ret)
self.assertEqual([{"colA": 1}, {"colA": 2}, {"colA": 3}], ret)
self.mock_txn.execute.assert_called_with(
"SELECT colA FROM tablename WHERE keycol = ?", ["A set"]
)