def test_auth(self): redis_server = redislite.Redis( serverconfig={ 'requirepass': '******', 'port': self.redis_test_port+1 }, password='******' ) # This shouldn't generate an exception try: redis_client = redis.Redis(host='127.0.0.1', port=self.redis_test_port+1, password='******') uredis_client = uredis.Redis(host='127.0.0.1', port=self.redis_test_port+1, password='******') finally: redis_server.shutdown()
def setUp(self): self.redis_server = redislite.Redis( serverconfig={'port': self.redis_test_port}) self.uredis_client = uredis.Redis(host='127.0.0.1', port=self.redis_test_port)