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

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)

src/f/i/firefox-flicks-HEAD/vendor-local/lib/python/celery/tests/concurrency/test_threads.py   firefox-flicks(Download)
from mock import Mock
 
from celery.concurrency.threads import NullDict, TaskPool, apply_target
 
from celery.tests.utils import Case, mask_modules, mock_module
    def test_setitem(self):
        x = NullDict()
        x['foo'] = 1
        with self.assertRaises(KeyError):
            x['foo']

src/c/e/celery-HEAD/celery/tests/concurrency/test_threads.py   celery(Download)
from __future__ import absolute_import
 
from celery.concurrency.threads import NullDict, TaskPool, apply_target
 
from celery.tests.case import AppCase, Case, Mock, mask_modules, mock_module
    def test_setitem(self):
        x = NullDict()
        x['foo'] = 1
        with self.assertRaises(KeyError):
            x['foo']

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/celery/tests/concurrency/test_threads.py   antisocial(Download)
from mock import Mock
 
from celery.concurrency.threads import NullDict, TaskPool, apply_target
 
from celery.tests.utils import Case, mask_modules, mock_module
    def test_setitem(self):
        x = NullDict()
        x['foo'] = 1
        with self.assertRaises(KeyError):
            x['foo']

src/c/e/celery-3.1.11/celery/tests/concurrency/test_threads.py   celery(Download)
from __future__ import absolute_import
 
from celery.concurrency.threads import NullDict, TaskPool, apply_target
 
from celery.tests.case import AppCase, Case, Mock, mask_modules, mock_module
    def test_setitem(self):
        x = NullDict()
        x['foo'] = 1
        with self.assertRaises(KeyError):
            x['foo']