Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

src/f/l/Flask-And-Redis-HEAD/testapp/tests/test_flask_redis.py   Flask-And-Redis(Download)
    def test_unix_socket_path(self):
        self.app.config['REDIS_CUSTOM_HOST'] = '/does/not/exist/redis.sock'
        redis = Redis(self.app, 'REDIS_CUSTOM')
        self.assertRaisesRegexp(ConnectionError, 'unix socket', redis.ping)