def test_help():
    """The -h flag should raise SysExit with base.py's docstring."""

    # shouldn't matter the order the -h comes in
    sys.argv.extend(["-u", "someone", "-s", "-h", "wow", "much", "search"])
    with pytest.raises(SystemExit) as raises:
        parse_args()

    assert base.__doc__.strip() in raises.value.args
dataset/ETHPy150Open a-tal/pyweet/test/test_cmd_line.py/test_help/original