From 0d75ff703d639f608b04ee2535774ca2d214bafc Mon Sep 17 00:00:00 2001 From: Sergey Azovskov Date: Wed, 13 Jan 2016 23:13:07 +0500 Subject: [PATCH] [sentinel] Simple test to check we could properly create all class structure and init classes --- kombu/tests/transport/test_redis.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/kombu/tests/transport/test_redis.py b/kombu/tests/transport/test_redis.py index 8dc7d845..a67a9653 100644 --- a/kombu/tests/transport/test_redis.py +++ b/kombu/tests/transport/test_redis.py @@ -943,6 +943,16 @@ class test_Redis(Case): _do_test() + def test_check_at_least_we_try_to_connect_and_fail(self): + import redis + connection = Connection('redis://localhost:65534/') + + with self.assertRaises(redis.exceptions.ConnectionError): + chan = connection.channel() + chan._size('some_queue') + + + def _redis_modules(): class ConnectionError(Exception):