def test_replay_dump_template_name(monkeypatch, mocker, user_config_data, user_config_file):
 monkeypatch.chdir('tests/fake-repo-tmpl')
 mock_replay_dump = mocker.patch('cookiecutter.main.dump')
 mocker.patch('cookiecutter.main.generate_files')
 cookiecutter('.', no_input=True, replay=False, config_file=user_config_file)
 mock_replay_dump.assert_called_once_with(user_config_data['replay_dir'], 'fake-repo-tmpl', mocker.ANY)

def test_replay_dump_template_name ( monkeypatch , mocker , user_config_data , user_config_file ) : monkeypatch . chdir ( 'tests/fake-repo-tmpl' ) mock_replay_dump = mocker . patch ( 'cookiecutter.main.dump' ) mocker . patch ( 'cookiecutter.main.generate_files' ) cookiecutter ( '.' , no_input = True , replay = False , config_file = user_config_file ) mock_replay_dump . assert_called_once_with ( user_config_data [ 'replay_dir' ] , 'fake-repo-tmpl' , mocker . ANY )
check that replay_dump is called with a valid template_name that is not a relative path .