<s> from tests import Basic <EOL> from tests . test_failure import FailureTests <EOL> from pyres import failure <EOL> from pyres . failure . base import BaseBackend <EOL> from pyres . failure . multiple import MultipleBackend <EOL> from pyres . failure . redis import RedisBackend <EOL> class TestBackend ( BaseBackend ) : <EOL> def save ( self , resq ) : <EOL> resq . redis . set ( '<STR_LIT>' , <NUM_LIT:1> ) <EOL> failure . backend = MultipleBackend <EOL> failure . backend . classes = [ RedisBackend , TestBackend ] <EOL> class BasicMultiBackend ( Basic ) : <EOL> queue = '<STR_LIT>' <EOL> class MultipleFailureTests ( FailureTests ) : <EOL> def setUp ( self ) : <EOL> FailureTests . setUp ( self ) <EOL> self . job_class = BasicMultiBackend <EOL> self . queue_name = '<STR_LIT>' </s>
