def test_parse_args_defaults():
    args = parse_args(['test.audit', 'test.nessus'])
    assert args.timestamp == False
    assert args.verbose == False
    assert args.overwrite == False
    assert args.filename == ''
    assert args.audit == 'test.audit'
    assert args.nessus == 'test.nessus'
def test_parse_args_defaults():
    args = parse_args(['test.audit', 'test.nessus'])
    assert args.timestamp == False
    assert args.verbose == False
    assert args.overwrite == False
    assert args.filename == ''
    assert args.audit == 'test.audit'
    assert args.nessus == 'test.nessus'
def test_parse_args_all_values():
    from create_baseline_audit import show_time
    from create_baseline_audit import show_verbose
    args = parse_args(
        ['-t', '-v', '-o', '-f', 'output.audit', 'test.audit', 'test.nessus'])
    assert args.timestamp == True
    assert args.verbose == True
    assert args.overwrite == True
    assert args.filename == 'output.audit'
    assert args.audit == 'test.audit'
    assert args.nessus == 'test.nessus'
def test_parse_args_all_values():
    from create_baseline_audit import show_time
    from create_baseline_audit import show_verbose
    args = parse_args(['-t', '-v', '-o', '-f', 'output.audit',
                       'test.audit', 'test.nessus'])
    assert args.timestamp == True
    assert args.verbose == True
    assert args.overwrite == True
    assert args.filename == 'output.audit'
    assert args.audit == 'test.audit'
    assert args.nessus == 'test.nessus'
def test_parse_args_with_no_parameters(capsys):
    with pytest.raises(SystemExit) as pytest_wrapped_e:
        parse_args([])
    assert pytest_wrapped_e.type == SystemExit
    (out, err) = capsys.readouterr()
    assert 'the following arguments are required' in err
def test_parse_args_with_no_parameters(capsys):
    with pytest.raises(SystemExit) as pytest_wrapped_e:
        parse_args([])
    assert pytest_wrapped_e.type == SystemExit
    (out, err) = capsys.readouterr()
    assert 'the following arguments are required' in err