示例#1
0
  def __init__(self):
    threading.Thread.__init__(self)

    self.host = 'localhost'
    self.port = get_unused_port()

    self.server = InMemorySMTP(self.host, self.port)
    wait_for_port(self.host, self.port)
    def __init__(self):
        self.mongobin = os.path.join(os.path.dirname(os.path.abspath(__file__)), "../../test_components/")
        self.mongod = os.path.join(self.mongobin, "mongod")

        self.dbpath = mkdtemp()
        self.logpath = os.path.join(self.dbpath, "mongo.log")
        self.pidfile = os.path.join(self.dbpath, "mongod.lock")

        self.port = get_unused_port()
        self.host = "localhost"
    def __init__(self, app_path, cfg):
        super(TornadoTestInstance, self).__init__(app_path, cfg)

        self.host = "localhost"
        self.cfg["port"] = self.port = get_unused_port()