

def test_parse_compound_arglist1():
    argv = 'run with a=17 b=1 -m localhost:22222'.split()
    args = parse_args((['test_prog.py'] + argv))
    expected = parse_args(['test_prog.py'], print_help=False)
    expected['COMMAND'] = 'run'
    expected['with'] = True
    expected['UPDATE'] = ['a=17', 'b=1']
    expected['--mongo_db'] = 'localhost:22222'
    assert (args == expected)

dataset/ETHPy150Open IDSIA/sacred/tests/test_arg_parser.py test_parse_compound_arglist1/original