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

All Samples(7)  |  Call(5)  |  Derive(1)  |  Import(1)

src/d/a/Dandelion-Message-Service-HEAD/dandelionpy/dandelion/synchronizer.py   Dandelion-Message-Service(Download)
"""
 
from dandelion.service import RepetitiveWorker
from dandelion.network import Client
from dandelion.discoverer import DiscovererException
 
class Synchronizer(RepetitiveWorker):

src/d/a/Dandelion-Message-Service-HEAD/dandelionpy/dandelion/test/service_test.py   Dandelion-Message-Service(Download)
 
        # Vanilla construction        
        rw = dandelion.service.RepetitiveWorker(_test_func, min_wait_time_sec=1)
        self.assertFalse(rw.running)
        rw = dandelion.service.RepetitiveWorker(_test_func)
        self.assertFalse(rw.running)
 
        # Don't wait construction        
        rw = dandelion.service.RepetitiveWorker(_test_func, min_wait_time_sec=0)
 
        # Ok, to use same func twice
        rw = dandelion.service.RepetitiveWorker(_test_func, min_wait_time_sec=0)
        self.assertFalse(rw.running)
 
            lst.append(1337)
 
        rw = dandelion.service.RepetitiveWorker(_test_func, min_wait_time_sec=0)
 
        # Constructions shouldn't call the work function