<s> import pytest <EOL> from rc . poller import supported_pollers <EOL> from rc import redis_clients <EOL> from rc . redis_cluster import RedisCluster <EOL> @ pytest . mark . parametrize ( '<STR_LIT>' , supported_pollers ) <EOL> def test_all_pollers ( redis_hosts , poller , monkeypatch ) : <EOL> monkeypatch . setattr ( redis_clients , '<STR_LIT>' , poller ) <EOL> redis_cluster = RedisCluster ( redis_hosts ) <EOL> cluster_client = redis_cluster . get_client ( ) <EOL> keys = [ ] <EOL> for i in range ( <NUM_LIT:10> ) : <EOL> key = '<STR_LIT>' % i <EOL> keys . append ( key ) <EOL> cluster_client . set ( key , i ) <EOL> assert cluster_client . mget ( keys ) == map ( str , range ( <NUM_LIT:10> ) ) </s>
