summary refs log tree commit diff
path: root/tests/rest/client/v1/test_rooms.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-04-01 16:17:32 +0100
committerErik Johnston <erik@matrix.org>2016-04-01 16:17:32 +0100
commitc906f3066152ba7a65c0765a5812b71bb8a4016c (patch)
tree3b76d68a0cdf734a5385b3ab8d0c50e370426c6d /tests/rest/client/v1/test_rooms.py
parentMerge pull request #684 from matrix-org/markjh/backfill_id_gen (diff)
downloadsynapse-c906f3066152ba7a65c0765a5812b71bb8a4016c.tar.xz
Do checks for memberships before creating events
Diffstat (limited to 'tests/rest/client/v1/test_rooms.py')
-rw-r--r--tests/rest/client/v1/test_rooms.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rest/client/v1/test_rooms.py b/tests/rest/client/v1/test_rooms.py
index 4ab8b35e6b..8853cbb5fc 100644
--- a/tests/rest/client/v1/test_rooms.py
+++ b/tests/rest/client/v1/test_rooms.py
@@ -259,8 +259,8 @@ class RoomPermissionsTestCase(RestTestCase):
         # set [invite/join/left] of self, set [invite/join/left] of other,
         # expect all 404s because room doesn't exist on any server
         for usr in [self.user_id, self.rmcreator_id]:
-            yield self.join(room=room, user=usr, expect_code=404)
-            yield self.leave(room=room, user=usr, expect_code=404)
+            yield self.join(room=room, user=usr, expect_code=403)
+            yield self.leave(room=room, user=usr, expect_code=403)
 
     @defer.inlineCallbacks
     def test_membership_private_room_perms(self):