def test_clone_unknown_subprocess_error(mocker, clone_dir):
 mocker.patch('cookiecutter.vcs.subprocess.check_output', autospec=True, side_effect=[subprocess.CalledProcessError((-1), 'cmd', output='Something went wrong')])
 with pytest.raises(subprocess.CalledProcessError):
  vcs.clone('https://github.com/pytest-dev/cookiecutter-pytest-plugin', clone_to_dir=clone_dir, no_input=True)

def test_clone_unknown_subprocess_error ( mocker , clone_dir ) : mocker . patch ( 'cookiecutter.vcs.subprocess.check_output' , autospec = True , side_effect = [ subprocess . CalledProcessError ( ( - 1 ) , 'cmd' , output = 'Something went wrong' ) ] ) with pytest . raises ( subprocess . CalledProcessError ) : vcs . clone ( 'https://github.com/pytest-dev/cookiecutter-pytest-plugin' , clone_to_dir = clone_dir , no_input = True )
in clone() .