# Path: pyipmi/msgs/registry.py
# class MessageRegistry(object):
#     def __init__(self):
#     def register_class(self, cls):
#     def create(self, netfn, cmdid, group_extension, *args, **kwargs):
#     def create_response(self, req):
#     def create_request_by_name(self, name, *args, **kwargs):
#     def create_response_by_name(self, name, *args, **kwargs):
# DEFAULT_REGISTRY = MessageRegistry()


from nose.tools import eq_, raises
from pyipmi.msgs import create_message, create_response_message, create_response_by_name, create_request_by_name
import pyipmi.msgs



def test_create_message():
    req = create_message(6, 1, None)
    eq_(type(req), pyipmi.msgs.bmc.GetDeviceIdReq)

# Path: pyipmi/msgs/registry.py
# class MessageRegistry(object):
#     def __init__(self):
#     def register_class(self, cls):
#     def create(self, netfn, cmdid, group_extension, *args, **kwargs):
#     def create_response(self, req):
#     def create_request_by_name(self, name, *args, **kwargs):
#     def create_response_by_name(self, name, *args, **kwargs):
# DEFAULT_REGISTRY = MessageRegistry()


# Path: tests/msgs/test_registry.py
from nose.tools import eq_, raises
from pyipmi.msgs import create_message, create_response_message, create_response_by_name, create_request_by_name
import pyipmi.msgs




def test_create_message():
    req = create_message(6, 1, None)
    eq_(type(req), pyipmi.msgs.bmc.GetDeviceIdReq)

    req = create_message(7, 1, None)