# Path: rocketchat_API/APIExceptions/RocketExceptions.py
# class RocketMissingParamException(Exception):
#     pass


import uuid
import pytest
from rocketchat_API.APIExceptions.RocketExceptions import RocketMissingParamException
    yield _testuser_id

    logged_rocket.users_delete(_testuser_id)


def test_channels_list(logged_rocket):
    channels_list = logged_rocket.channels_list().json()
    assert channels_list.get("success")
    assert "channels" in channels_list


def test_channels_list_joined(logged_rocket):
    channels_list_joined = logged_rocket.channels_list_joined().json()
    assert channels_list_joined.get("success")
    assert "channels" in channels_list_joined


def test_channels_info(logged_rocket):
    channels_info = logged_rocket.channels_info(room_id="GENERAL").json()
    assert channels_info.get("success")
    assert "channel" in channels_info
    assert channels_info.get("channel").get("_id") == "GENERAL"

    channel_name = channels_info.get("channel").get("name")
    channels_info = logged_rocket.channels_info(channel=channel_name).json()
    assert channels_info.get("success")
    assert "channel" in channels_info
    assert channels_info.get("channel").get("_id") == "GENERAL"
    assert channels_info.get("channel").get("name") == channel_name


# Path: rocketchat_API/APIExceptions/RocketExceptions.py
# class RocketMissingParamException(Exception):
#     pass


# Path: tests/test_channels.py
import uuid
import pytest
from rocketchat_API.APIExceptions.RocketExceptions import RocketMissingParamException

    yield _testuser_id

    logged_rocket.users_delete(_testuser_id)


def test_channels_list(logged_rocket):
    channels_list = logged_rocket.channels_list().json()
    assert channels_list.get("success")
    assert "channels" in channels_list


def test_channels_list_joined(logged_rocket):
    channels_list_joined = logged_rocket.channels_list_joined().json()
    assert channels_list_joined.get("success")
    assert "channels" in channels_list_joined


def test_channels_info(logged_rocket):
    channels_info = logged_rocket.channels_info(room_id="GENERAL").json()
    assert channels_info.get("success")
    assert "channel" in channels_info
    assert channels_info.get("channel").get("_id") == "GENERAL"

    channel_name = channels_info.get("channel").get("name")
    channels_info = logged_rocket.channels_info(channel=channel_name).json()
    assert channels_info.get("success")
    assert "channel" in channels_info
    assert channels_info.get("channel").get("_id") == "GENERAL"
    assert channels_info.get("channel").get("name") == channel_name


    with pytest.raises(RocketMissingParamException):