def test_home_templates_exist(self):
        self.mocks['create_auto_init_templates'].side_effect = \
            GitHomeTemplatesExists('~/.jig/git/templates')

        with self.assertRaises(ForcedExit):
            self.run_command()

        self.assertResults(
            result_with_hint(
                u'~/.jig/git/templates already exists',
                GIT_HOME_TEMPLATES_EXISTS),
            self.error)
A templates directory already exists in ~/.jig/git
dataset/ETHPy150Open robmadole/jig/src/jig/commands/tests/test_sticky.py/TestStickyCommand.test_home_templates_exist