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


import uuid
import pytest
from rocketchat_API.APIExceptions.RocketExceptions import RocketMissingParamException
    _test_group_id = (
        logged_rocket.groups_create(test_group_name).json().get("group").get("_id")
    )

    return _test_group_id


def test_groups_list_all(logged_rocket):
    groups_list = logged_rocket.groups_list_all().json()
    assert groups_list.get("success")
    assert "groups" in groups_list


def test_groups_list(logged_rocket):
    groups_list = logged_rocket.groups_list().json()
    assert groups_list.get("success")
    assert "groups" in groups_list


def test_groups_info(logged_rocket, test_group_name, test_group_id):
    groups_info_by_id = logged_rocket.groups_info(room_id=test_group_id).json()
    assert groups_info_by_id.get("success")
    assert "group" in groups_info_by_id
    assert groups_info_by_id.get("group").get("_id") == test_group_id

    groups_info_by_name = logged_rocket.groups_info(room_name=test_group_name).json()
    assert groups_info_by_name.get("success")
    assert "group" in groups_info_by_name
    assert groups_info_by_name.get("group").get("_id") == test_group_id


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


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

    _test_group_id = (
        logged_rocket.groups_create(test_group_name).json().get("group").get("_id")
    )

    return _test_group_id


def test_groups_list_all(logged_rocket):
    groups_list = logged_rocket.groups_list_all().json()
    assert groups_list.get("success")
    assert "groups" in groups_list


def test_groups_list(logged_rocket):
    groups_list = logged_rocket.groups_list().json()
    assert groups_list.get("success")
    assert "groups" in groups_list


def test_groups_info(logged_rocket, test_group_name, test_group_id):
    groups_info_by_id = logged_rocket.groups_info(room_id=test_group_id).json()
    assert groups_info_by_id.get("success")
    assert "group" in groups_info_by_id
    assert groups_info_by_id.get("group").get("_id") == test_group_id

    groups_info_by_name = logged_rocket.groups_info(room_name=test_group_name).json()
    assert groups_info_by_name.get("success")
    assert "group" in groups_info_by_name
    assert groups_info_by_name.get("group").get("_id") == test_group_id


    with pytest.raises(RocketMissingParamException):