def test_disconnect(self): response_data = api.on_disconnect() self.assertEqual(ErrorCodes.OK, response_data[0])
def test_disconnect_leaves_joined_room(self): self.join_room() self.assert_in_room(True) api.on_disconnect() self.assert_in_room(False)
def on_disconnect() -> (int, None): return api.on_disconnect()