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

All Samples(14)  |  Call(7)  |  Derive(0)  |  Import(7)

src/s/o/socorro-HEAD/webapp-django/vendor/lib/python/celery/tests/test_app/test_app_amqp.py   socorro(Download)
from mock import Mock
 
from celery.app.amqp import MSG_OPTIONS, extract_msg_options
from celery.tests.utils import AppCase
 
    def test_extract_msg_options(self):
        testing = {"mandatory": True, "routing_key": "foo.xuzzy"}
        result = extract_msg_options(testing)
        self.assertEqual(result["mandatory"], True)
        self.assertEqual(result["routing_key"], "foo.xuzzy")

src/o/h/oh-mainline-HEAD/vendor/packages/celery/celery/tests/test_app/test_app_amqp.py   oh-mainline(Download)
from mock import Mock
 
from celery.app.amqp import MSG_OPTIONS, extract_msg_options
from celery.tests.utils import AppCase
 
    def test_extract_msg_options(self):
        testing = {"mandatory": True, "routing_key": "foo.xuzzy"}
        result = extract_msg_options(testing)
        self.assertEqual(result["mandatory"], True)
        self.assertEqual(result["routing_key"], "foo.xuzzy")

src/m/o/mozillians-HEAD/vendor-local/lib/python/celery/tests/test_app/test_app_amqp.py   mozillians(Download)
from mock import Mock
 
from celery.app.amqp import MSG_OPTIONS, extract_msg_options
from celery.tests.utils import AppCase
 
    def test_extract_msg_options(self):
        testing = {"mandatory": True, "routing_key": "foo.xuzzy"}
        result = extract_msg_options(testing)
        self.assertEqual(result["mandatory"], True)
        self.assertEqual(result["routing_key"], "foo.xuzzy")

src/m/a/make.mozilla.org-HEAD/vendor-local/lib/python/celery/tests/test_app/test_app_amqp.py   make.mozilla.org(Download)
from mock import Mock
 
from celery.app.amqp import MSG_OPTIONS, extract_msg_options
from celery.tests.utils import AppCase
 
    def test_extract_msg_options(self):
        testing = {"mandatory": True, "routing_key": "foo.xuzzy"}
        result = extract_msg_options(testing)
        self.assertEqual(result["mandatory"], True)
        self.assertEqual(result["routing_key"], "foo.xuzzy")

src/p/l/playdoh-lib-HEAD/lib/python/celery/tests/test_app/test_app_amqp.py   playdoh-lib(Download)
from mock import Mock
 
from celery.app.amqp import MSG_OPTIONS, extract_msg_options
from celery.tests.utils import AppCase
 
    def test_extract_msg_options(self):
        testing = {"mandatory": True, "routing_key": "foo.xuzzy"}
        result = extract_msg_options(testing)
        self.assertEqual(result["mandatory"], True)
        self.assertEqual(result["routing_key"], "foo.xuzzy")

src/k/u/kuma-lib-HEAD/packages/celery/celery/tests/test_app/test_app_amqp.py   kuma-lib(Download)
from mock import Mock
 
from celery.app.amqp import MSG_OPTIONS, extract_msg_options
from celery.tests.utils import AppCase
 
    def test_extract_msg_options(self):
        testing = {"mandatory": True, "routing_key": "foo.xuzzy"}
        result = extract_msg_options(testing)
        self.assertEqual(result["mandatory"], True)
        self.assertEqual(result["routing_key"], "foo.xuzzy")

src/o/p/openquake-packages-HEAD/celery/celery/tests/test_app/test_app_amqp.py   openquake-packages(Download)
from mock import Mock
 
from celery.app.amqp import MSG_OPTIONS, extract_msg_options
from celery.tests.utils import AppCase
 
    def test_extract_msg_options(self):
        testing = {"mandatory": True, "routing_key": "foo.xuzzy"}
        result = extract_msg_options(testing)
        self.assertEqual(result["mandatory"], True)
        self.assertEqual(result["routing_key"], "foo.xuzzy")