@patch('sys.stdout', new_callable=StringIO)
@patch('sys.stderr', new_callable=StringIO)
def test_print_help(stderr, stdout):
    tool = get_tool('groups')
    server = Server('localhost')
    try:
        status = tool.execute(server, ['groups', '--help'])
    except __HOLE__ as e:
        status = e.code
    eq_(0, status)
    ok_(len(stdout.getvalue()) > 0)
    eq_('', stderr.getvalue())
dataset/ETHPy150Open bjorns/aem-cmd/tests/tools/test_groups.py/test_print_help