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))
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)