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

All Samples(8)  |  Call(6)  |  Derive(2)  |  Import(0)

src/i/n/input-lib-HEAD/packages/celery/celery/tests/test_bin/test_celerybeat.py   input-lib(Download)
class MockBeat(beat.Beat):
    running = False
 
    def run(self):
        self.__class__.running = True
 
 
class MockBeat2(beat.Beat):
    def test_loglevel_string(self):
        b = beat.Beat(loglevel="DEBUG")
        self.assertEqual(b.loglevel, logging.DEBUG)
 
        b2 = beat.Beat(loglevel=logging.DEBUG)
        self.assertEqual(b2.loglevel, logging.DEBUG)
 
    def test_init_loader(self):
        b = beat.Beat()