예제 #1
0
def setup():
    spawner.spawn(host=config.BEANSTALKD_HOST,
                  port=config.BEANSTALKD_PORT,
                  path=config.BEANSTALKD)
    global conn
    conn = serverconn.ServerConn(config.BEANSTALKD_HOST,
                                 int(config.BEANSTALKD_PORT))
예제 #2
0
def _setUp(self):
    config = get_config("ServerConn", "../tests/tests.cfg")
    self.host = config.BEANSTALKD_HOST
    self.port = int(config.BEANSTALKD_PORT)
    spawner.spawn(host=self.host, port=self.port, path=config.BEANSTALKD)
예제 #3
0
def setup():
    spawner.spawn(host=config.BEANSTALKD_HOST, port=config.BEANSTALKD_PORT, path=config.BEANSTALKD)
    global conn
    conn = serverconn.ServerConn(config.BEANSTALKD_HOST, int(config.BEANSTALKD_PORT))