def test_two_sentinel_one_ko(self):
     """ Test two sentinels one non-existing and one OK. The existing is used to connect.
     """
     sentinels = [{"host": "localhost", "port": 44455}, {"host": "localhost", "port": 26379}]
     sentinel = StrictSentinel(retries_sleep=0.001, sentinels=sentinels)
     strict_redis = sentinel.get_strict_redis("sprayer-master")
     self.assertTrue(strict_redis.ping())
 def test_simplest(self):
     sentinel = StrictSentinel()
     strict_redis = sentinel.get_strict_redis("sprayer-master")
     self.assertTrue(strict_redis.ping())