def test_create_unreachable_node(self):
        basedir = os.path.join(self.make_basedir(), "node1")
        d = self.cliMustSucceed("create-node", "--hostname", "not-localhost",
                                basedir)
        def _check(out):
            self.failUnless(out.startswith("node created in %s, URL is http://not-localhost:" % basedir), out)
            self.failUnless(os.path.exists(os.path.join(basedir, "petmail.db")))
            self.failUnlessEqual(self.stderr.strip(),
                                 "WARNING: if you set --hostname, you probably want to set --listen too")
        d.addCallback(_check)
        return d
dataset/ETHPy150Open warner/petmail/petmail/test/test_node.py/CLI.test_create_unreachable_node/original