diff options
Diffstat (limited to 't/oldint/tests/test_redis.py')
-rw-r--r-- | t/oldint/tests/test_redis.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/t/oldint/tests/test_redis.py b/t/oldint/tests/test_redis.py new file mode 100644 index 00000000..610b0149 --- /dev/null +++ b/t/oldint/tests/test_redis.py @@ -0,0 +1,19 @@ + +from funtests import transport + +from kombu.tests.case import skip + + +@skip.unless_module('redis') +class test_redis(transport.TransportCase): + transport = 'redis' + prefix = 'redis' + + def after_connect(self, connection): + client = connection.channel().client + client.info() + + def test_cannot_connect_raises_connection_error(self): + conn = self.get_connection(port=65534) + with self.assertRaises(conn.connection_errors): + conn.connect() |