mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:16:09 -04:00
Replace assertEquals and friends with non-deprecated versions. (#12092)
This commit is contained in:
parent
ab3ef49059
commit
02d708568b
62 changed files with 888 additions and 889 deletions
|
@ -54,7 +54,7 @@ class TermsTestCase(unittest.HomeserverTestCase):
|
|||
request_data = json.dumps({"username": "kermit", "password": "monkey"})
|
||||
channel = self.make_request(b"POST", self.url, request_data)
|
||||
|
||||
self.assertEquals(channel.result["code"], b"401", channel.result)
|
||||
self.assertEqual(channel.result["code"], b"401", channel.result)
|
||||
|
||||
self.assertTrue(channel.json_body is not None)
|
||||
self.assertIsInstance(channel.json_body["session"], str)
|
||||
|
@ -99,7 +99,7 @@ class TermsTestCase(unittest.HomeserverTestCase):
|
|||
|
||||
# We don't bother checking that the response is correct - we'll leave that to
|
||||
# other tests. We just want to make sure we're on the right path.
|
||||
self.assertEquals(channel.result["code"], b"401", channel.result)
|
||||
self.assertEqual(channel.result["code"], b"401", channel.result)
|
||||
|
||||
# Finish the UI auth for terms
|
||||
request_data = json.dumps(
|
||||
|
@ -117,7 +117,7 @@ class TermsTestCase(unittest.HomeserverTestCase):
|
|||
# We're interested in getting a response that looks like a successful
|
||||
# registration, not so much that the details are exactly what we want.
|
||||
|
||||
self.assertEquals(channel.result["code"], b"200", channel.result)
|
||||
self.assertEqual(channel.result["code"], b"200", channel.result)
|
||||
|
||||
self.assertTrue(channel.json_body is not None)
|
||||
self.assertIsInstance(channel.json_body["user_id"], str)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue