def setUp(self): self.conn = redis.RedisClient('localhost', access_port) self.r = self.conn.do_generic_request self.assert_equal = redis.rr_assert_equal self.assert_subs = redis.rr_assert_substring self.send = self.conn.raw_write self.recv = self.conn.read_response
def test_config(self): conf = testenv.Config("test") try: conf.setup() cli = redis.RedisClient("localhost", 6000) assert cli.do_inline_request('ping') == 'PONG' finally: conf.teardown()
def setUp(self): self.conn = redis.RedisClient('localhost', access_port)
def redis2_client(): return redis.RedisClient("localhost", 7209)
def redis1_client(): return redis.RedisClient("localhost", 7109)
def gw_client(): return redis.RedisClient("localhost", 6000)