kombu/funtests/tests/test_redis.py

15 lines
399 B
Python
Raw Normal View History

from funtests import transport
2010-11-11 14:15:49 +00:00
class test_redis(transport.TransportCase):
transport = "redis"
prefix = "redis"
def after_connect(self, connection):
client = connection.channel().client
client.info()
def test_cant_connect_raises_connection_error(self):
conn = self.get_connection(port=65534)
self.assertRaises(conn.connection_errors, conn.connect)