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

All Samples(14)  |  Call(10)  |  Derive(0)  |  Import(4)

src/c/e/celery-3.1.11/celery/tests/contrib/test_migrate.py   celery(Download)
from kombu.transport.virtual import QoS
 
from celery.contrib.migrate import (
    StopFiltering,
    State,
    def test_strtotal(self):
        x = State()
        self.assertEqual(x.strtotal, '?')
        x.total_apx = 100
        self.assertEqual(x.strtotal, '100')
 
    def test_repr(self):
        x = State()
            start_filter(app, conn, filt, queues=['foo', 'bar'])
            consumer.callbacks[:] = []
            state = State()
            start_filter(app, conn, filt,
                         tasks='add,mul', callback=cb, state=state, limit=1)
    def test_filter_status(self):
        with override_stdouts() as (stdout, stderr):
            filter_status(State(), {'id': '1', 'task': 'add'}, Mock())
            self.assertTrue(stdout.getvalue())
 

src/c/e/celery-HEAD/celery/tests/contrib/test_migrate.py   celery(Download)
from kombu.transport.virtual import QoS
 
from celery.contrib.migrate import (
    StopFiltering,
    State,
    def test_strtotal(self):
        x = State()
        self.assertEqual(x.strtotal, '?')
        x.total_apx = 100
        self.assertEqual(x.strtotal, '100')
 
    def test_repr(self):
        x = State()
            start_filter(app, conn, filt, queues=['foo', 'bar'])
            consumer.callbacks[:] = []
            state = State()
            start_filter(app, conn, filt,
                         tasks='add,mul', callback=cb, state=state, limit=1)
    def test_filter_status(self):
        with override_stdouts() as (stdout, stderr):
            filter_status(State(), {'id': '1', 'task': 'add'}, Mock())
            self.assertTrue(stdout.getvalue())
 

src/f/i/firefox-flicks-HEAD/vendor-local/lib/python/celery/tests/contrib/test_migrate.py   firefox-flicks(Download)
from mock import patch
 
from celery.contrib.migrate import (
    State,
    migrate_task,
    def test_strtotal(self):
        x = State()
        self.assertEqual(x.strtotal, u'?')
        x.total_apx = 100
        self.assertEqual(x.strtotal, u'100')

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/celery/tests/contrib/test_migrate.py   antisocial(Download)
from mock import patch
 
from celery.contrib.migrate import (
    State,
    migrate_task,
    def test_strtotal(self):
        x = State()
        self.assertEqual(x.strtotal, u'?')
        x.total_apx = 100
        self.assertEqual(x.strtotal, u'100')