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

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

src/d/j/django-patchboard-HEAD/patchboard/tests.py   django-patchboard(Download)
import unittest
import datetime
 
from prioritizeddispatcher import RequirementsTree
from circuitbreaker import CircuitBreaker, CircuitOpen
        class MyBreaker(CircuitBreaker):
            def run(self):
                assert not getattr(self, 'fail', False)
 
        breaker = MyBreaker(4, 600)