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')
def test_redis_from_config_str(self): try: fake_redis = redis_from_config("FAKE_REDIS") except ImportError, e: import_skip(e, 'redis')