mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-07 11:02:13 -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
|
@ -1042,7 +1042,7 @@ class TestUserDirSearchDisabled(unittest.HomeserverTestCase):
|
|||
b'{"search_term":"user2"}',
|
||||
access_token=u1_token,
|
||||
)
|
||||
self.assertEquals(200, channel.code, channel.result)
|
||||
self.assertEqual(200, channel.code, channel.result)
|
||||
self.assertTrue(len(channel.json_body["results"]) > 0)
|
||||
|
||||
# Disable user directory and check search returns nothing
|
||||
|
@ -1053,5 +1053,5 @@ class TestUserDirSearchDisabled(unittest.HomeserverTestCase):
|
|||
b'{"search_term":"user2"}',
|
||||
access_token=u1_token,
|
||||
)
|
||||
self.assertEquals(200, channel.code, channel.result)
|
||||
self.assertEqual(200, channel.code, channel.result)
|
||||
self.assertTrue(len(channel.json_body["results"]) == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue