def test_create_node_existing_basedir(self):
        basedir = os.path.join(self.make_basedir(), "node1")
        d = self.cliMustSucceed("create-node", basedir)
        d.addCallback(lambda _: self.cli("create-node", basedir))
        def _check((out, err, rc)):
            self.failUnlessEqual(rc, 1)
            self.failUnlessEqual(err.strip(), "basedir '%s' already exists, refusing to touch it" % basedir)
        d.addCallback(_check)
        return d
dataset/ETHPy150Open warner/petmail/petmail/test/test_node.py/CLI.test_create_node_existing_basedir/original