'Execute hook from specified template in specified output
directory.'

def test_run_hook(self):

    tests_dir = os.path.join(self.repo_path, 'input{{hooks}}')
    with utils.work_in(self.repo_path):
        hooks.run_hook('pre_gen_project', tests_dir, {})
        assert os.path.isfile(os.path.join(tests_dir, 'python_pre.txt'))
        hooks.run_hook('post_gen_project', tests_dir, {})
        assert os.path.isfile(os.path.join(tests_dir, 'shell_post.txt'))
