def test_directory_already_exists(self):
        runner = CliRunner()
        with runner.isolated_filesystem():
            path = os.getcwd()

            # Create the project directory
            testprjpath = os.path.join(path, 'testprj')
            os.makedirs(testprjpath)

            result = runner.invoke(cli, ('createproject', 'testprj'))
            assert result.exit_code == 1
            assert '{0} exists.'.format(os.path.join(path, 'testprj')) in result.output
dataset/ETHPy150Open pyvideo/steve/tests/test_cmdline.py/TestCreateproject.test_directory_already_exists/original