Ejemplo n.º 1
0
 def test_guest_access_event(self):
     room = self.test_room
     assert room.guest_access == "forbidden"
     room.handle_event(
         RoomGuestAccessEvent(
             {
                 "event_id": "event_id",
                 "sender": BOB_ID,
                 "origin_server_ts": 0
             }, "can_join"))
     assert room.guest_access == "can_join"
Ejemplo n.º 2
0
 def test_guest_access_event(self):
     parsed_dict = TestClass._load_response("tests/data/events/guest_access.json")
     event = RoomGuestAccessEvent.from_dict(parsed_dict)
     assert isinstance(event, RoomGuestAccessEvent)
Ejemplo n.º 3
0
 def test_guest_access_event(self):
     room = self.test_room
     assert room.guest_access == "forbidden"
     room.handle_event(
         RoomGuestAccessEvent("event_id", BOB_ID, 0, "can_join"))
     assert room.guest_access == "can_join"