def test_fails_without_arguments(): with pytest.raises(SystemExit): mdpants.parse_args([])
def test_binfile_needs_argument(): with pytest.raises(SystemExit): assert mdpants.parse_args(['--bin'])
def test_infile_and_binary_fails(): with pytest.raises(SystemExit): assert mdpants.parse_args( ['--in existing_file', '--bin existing_file'])
def test_random_and_file_fails(): with pytest.raises(SystemExit): assert mdpants.parse_args(['-R', 'existing_file'])
def test_single_file_succesds(): assert mdpants.parse_args(['existing_file'])
def test_just_random_succesds(): assert mdpants.parse_args(['-R'])