Example #1
0
def test_good_args2():
    try:
        sys.argv = 'run_batch.py -s mean -m BCC/bcc-csm1-1'.split()
        args = arg_parse_batch()
        assert args.model == 'BCC/bcc-csm1-1'
    except AssertionError as exc:
        pass
Example #2
0
def test_arg_parse_batch():
    try:
        sys.argv = 'run_chunk.py -s min'.split()
        arg_parse_batch()
    except SystemExit as exc:
        pass
Example #3
0
def test_good_args4():
    sys.argv = 'run_batch.py -s mean -m BCC/bcc-csm1-1'.split()
    args = arg_parse_batch()
    assert args.model == ['BCC/bcc-csm1-1']
    assert args.stat == ['mean']