예제 #1
0
 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
예제 #2
0
 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()
예제 #3
0
 def setUp(self):
     self.conn = redis.RedisClient('localhost', access_port)
예제 #4
0
def redis2_client():
    return redis.RedisClient("localhost", 7209)
예제 #5
0
def redis1_client():
    return redis.RedisClient("localhost", 7109)
예제 #6
0
def gw_client():
    return redis.RedisClient("localhost", 6000)