示例#1
0
def test_fails_without_arguments():
    with pytest.raises(SystemExit):
        mdpants.parse_args([])
示例#2
0
def test_binfile_needs_argument():
    with pytest.raises(SystemExit):
        assert mdpants.parse_args(['--bin'])
示例#3
0
def test_infile_and_binary_fails():
    with pytest.raises(SystemExit):
        assert mdpants.parse_args(
            ['--in existing_file', '--bin existing_file'])
示例#4
0
def test_random_and_file_fails():
    with pytest.raises(SystemExit):
        assert mdpants.parse_args(['-R', 'existing_file'])
示例#5
0
def test_single_file_succesds():
    assert mdpants.parse_args(['existing_file'])
示例#6
0
def test_just_random_succesds():
    assert mdpants.parse_args(['-R'])