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

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
Circuit breaker that supports twisted.

src/p/y/python-circuit-HEAD/circuit/test/test_twisted.py   python-circuit(Download)
from twisted.internet import task, defer
 
from circuit import TwistedCircuitBreakerSet
 
 
    def setUp(self):
        self.clock = task.Clock()
        self.log = mock()
        when(self.log).getChild('ctxt').thenReturn(self.log)
        self.circuit_breaker = TwistedCircuitBreakerSet(self.clock,