mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-11-17 23:50:11 -05: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
|
|
@ -30,7 +30,7 @@ class RegistrationStoreTestCase(HomeserverTestCase):
|
|||
def test_register(self):
|
||||
self.get_success(self.store.register_user(self.user_id, self.pwhash))
|
||||
|
||||
self.assertEquals(
|
||||
self.assertEqual(
|
||||
{
|
||||
# TODO(paul): Surely this field should be 'user_id', not 'name'
|
||||
"name": self.user_id,
|
||||
|
|
@ -131,7 +131,7 @@ class RegistrationStoreTestCase(HomeserverTestCase):
|
|||
),
|
||||
ThreepidValidationError,
|
||||
)
|
||||
self.assertEquals(e.value.msg, "Unknown session_id", e)
|
||||
self.assertEqual(e.value.msg, "Unknown session_id", e)
|
||||
|
||||
# Set the config setting to true.
|
||||
self.store._ignore_unknown_session_error = True
|
||||
|
|
@ -146,4 +146,4 @@ class RegistrationStoreTestCase(HomeserverTestCase):
|
|||
),
|
||||
ThreepidValidationError,
|
||||
)
|
||||
self.assertEquals(e.value.msg, "Validation token not found or has expired", e)
|
||||
self.assertEqual(e.value.msg, "Validation token not found or has expired", e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue