def make_shell():
    _shell = shell.OpenStackShell()
    _shell.command_manager = mock.Mock()

    return _shell
Create a new command shell and mock out some bits.
dataset/ETHPy150Open dtroyer/python-openstackclient/openstackclient/tests/test_shell.py/make_shell