diff options
author | Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> | 2022-08-05 16:59:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-05 16:59:09 +0200 |
commit | e2ed1b7155bbd38d4a2752073056c112464b3644 (patch) | |
tree | 72c0dd52bb339199a559726aff40a7633403e82b /tests/handlers/test_message.py | |
parent | Mark token-authenticaticated-registration API as not-experimental (#11897) (diff) | |
download | synapse-e2ed1b7155bbd38d4a2752073056c112464b3644.tar.xz |
Use literals in place of `HTTPStatus` constants in tests (#13463)
Diffstat (limited to 'tests/handlers/test_message.py')
-rw-r--r-- | tests/handlers/test_message.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/handlers/test_message.py b/tests/handlers/test_message.py index 44da96c792..986b50ce0c 100644 --- a/tests/handlers/test_message.py +++ b/tests/handlers/test_message.py @@ -314,4 +314,4 @@ class ServerAclValidationTestCase(unittest.HomeserverTestCase): channel = self.make_request( "POST", path, content={}, access_token=self.access_token ) - self.assertEqual(int(channel.result["code"]), 403) + self.assertEqual(channel.code, 403) |