summary refs log tree commit diff
path: root/tests/handlers/test_message.py
diff options
context:
space:
mode:
authorDirk Klimpel <5740567+dklimpel@users.noreply.github.com>2022-08-05 16:59:09 +0200
committerGitHub <noreply@github.com>2022-08-05 16:59:09 +0200
commite2ed1b7155bbd38d4a2752073056c112464b3644 (patch)
tree72c0dd52bb339199a559726aff40a7633403e82b /tests/handlers/test_message.py
parentMark token-authenticaticated-registration API as not-experimental (#11897) (diff)
downloadsynapse-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.py2
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)