def test_project_duplicate_creation(self):
        orig_dir = os.getcwd()
        tmp_dir = tempfile.mkdtemp()
        try:
            os.chdir(tmp_dir)

            cli = StackStrapCLI()
            cli.main(['template', 'add', 'test-template', repo_url])
            cli.main(['create', 'test_project_creation', 'test-template'])
            try:
                cli.main(['create', 'test_project_creation', 'test-template'])
                raise Exception("This shouldn't be reached")
            except __HOLE__ as e:
                self.assertEqual(e.code, 1)
        finally:
            os.chdir(orig_dir)
            shutil.rmtree(tmp_dir)
dataset/ETHPy150Open stackstrap/stackstrap/tests/test_project.py/ProjectTestCase.test_project_duplicate_creation