Exemple #1
0
 def test_redis_from_config_fake_redis(self):
     fake_redis = FakeRedis()
     try:
         self.assertEqual(redis_from_config(fake_redis), fake_redis)
     except ImportError, e:
         import_skip(e, 'redis')
Exemple #2
0
 def test_redis_from_config_fake_redis(self):
     fake_redis = FakeRedis()
     try:
         self.assertEqual(redis_from_config(fake_redis), fake_redis)
     except ImportError, e:
         import_skip(e, 'redis')
Exemple #3
0
 def test_redis_from_config_str(self):
     try:
         fake_redis = redis_from_config("FAKE_REDIS")
     except ImportError, e:
         import_skip(e, 'redis')
Exemple #4
0
 def test_redis_from_config_str(self):
     try:
         fake_redis = redis_from_config("FAKE_REDIS")
     except ImportError, e:
         import_skip(e, 'redis')