mirror of https://github.com/celery/kombu.git
15 lines
399 B
Python
15 lines
399 B
Python
from funtests import transport
|
|
|
|
|
|
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)
|