

@patch('sys.stdout', new_callable=StringIO)
@patch('sys.stderr', new_callable=StringIO)
def test_bad_command(stderr, stdout):
    tool = get_tool('packages')
    server = Server('localhost')
    status = tool.execute(server, ['packages', 'nonexisting', 'mock_package'])
    eq_(USER_ERROR, status)

dataset/ETHPy150Open bjorns/aem-cmd/tests/tools/test_packages.py test_bad_command/original