[sentinel] Simple test to check we could properly create all class structure and init classes

This commit is contained in:
Sergey Azovskov 2016-01-13 23:13:07 +05:00 committed by Ask Solem
parent 5b49ba673e
commit 0d75ff703d
1 changed files with 10 additions and 0 deletions

View File

@ -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):