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

All Samples(32)  |  Call(20)  |  Derive(0)  |  Import(12)

src/q/u/queuey-0.8/queuey/__init__.py   queuey(Download)
 
from metlog.config import client_from_dict_config
from mozsvc.config import Config
 
from queuey.resources import Root
                        config_file))))
 
    settings['config'] = config = Config(config_file)
 
    # Put values from the config file into the pyramid settings dict.

src/q/u/queuey-HEAD/queuey/__init__.py   queuey(Download)
 
from metlog.config import client_from_dict_config
from mozsvc.config import Config
 
from queuey.resources import Root
                        config_file))))
 
    settings['config'] = config = Config(config_file)
 
    # Put values from the config file into the pyramid settings dict.

src/m/o/mozsvc-0.7/mozsvc/tests/test_config.py   mozsvc(Download)
 
from mozsvc.exceptions import EnvironmentNotFoundError
from mozsvc.config import (Config, SettingsDict, load_into_settings,
                           get_configurator)
 
    def test_reader(self):
        config = Config(self.file_one)
 
        # values conversion
        self.assertEquals(config.get('one', 'foo'), 'bar')
    def test_location_interpolation(self):
        config = Config(self.file_one)
        # file_one is a StringIO, so it has no location.
        self.assertEquals(config.get('one', 'location'), '%(here)s')
        # file_two is a real file, so it has a location.

src/m/o/mozservices-HEAD/mozsvc/tests/test_config.py   mozservices(Download)
from StringIO import StringIO
 
from mozsvc.config import (Config, SettingsDict, load_into_settings,
                           get_configurator)
 
    def test_reader(self):
        config = Config(self.file_one)
 
        # values conversion
        self.assertEquals(config.get('one', 'foo'), 'bar')
    def test_location_interpolation(self):
        config = Config(self.file_one)
        # file_one is a StringIO, so it has no location.
        self.assertEquals(config.get('one', 'location'), '${HERE}')
        # file_two is a real file, so it has a location.

src/m/o/mozsvc-0.7/mozsvc/tests/test_metrics.py   mozsvc(Download)
from StringIO import StringIO
from mozsvc.config import Config, get_configurator
from mozsvc.plugin import load_from_config
from pyramid.config import Configurator
from textwrap import dedent
    def test_loading_from_config(self):
        mozconfig = Config(StringIO(dedent("""
        [test1]
        backend = mozsvc.metrics.MetlogPlugin
        sender_class=metlog.senders.ZmqPubSender
    def setUp(self):
        if not metlog:
            raise(unittest2.SkipTest('no metlog'))
        mozconfig = Config(StringIO(dedent("""
        [test1]
    def setUp(self):
        if not metlog:
            raise(unittest2.SkipTest('no metlog'))
        mozconfig = Config(StringIO(dedent("""
        [test1]
    def setUp(self):
        if not metlog:
            raise(unittest2.SkipTest('no metlog'))
        mozconfig = Config(StringIO(dedent("""
        [test1]

src/m/o/mozservices-HEAD/mozsvc/tests/test_metrics.py   mozservices(Download)
from StringIO import StringIO
from mozsvc.config import Config, get_configurator
from mozsvc.plugin import load_from_config
from pyramid.config import Configurator
from textwrap import dedent
    def test_loading_from_config(self):
        mozconfig = Config(StringIO(dedent("""
        [test1]
        backend = mozsvc.metrics.MetlogPlugin
        sender_class=metlog.senders.UdpSender
    def setUp(self):
        if not metlog:
            raise(unittest2.SkipTest('no metlog'))
        mozconfig = Config(StringIO(dedent("""
        [test1]
    def setUp(self):
        if not metlog:
            raise(unittest2.SkipTest('no metlog'))
        mozconfig = Config(StringIO(dedent("""
        [test1]
    def setUp(self):
        if not metlog:
            raise(unittest2.SkipTest('no metlog'))
        mozconfig = Config(StringIO(dedent("""
        [test1]

src/m/o/mozservices-HEAD/mozsvc/tests/test_service_definition.py   mozservices(Download)
 
from cornice.tests.support import CatchErrors
from mozsvc.config import Config
metlog = True
try:
    def setUp(self):
        if not metlog:
            raise(unittest2.SkipTest('no metlog'))
        mozconfig = Config(StringIO(dedent("""
        [test1]

src/m/o/mozservices-HEAD/mozsvc/tests/test_plugin.py   mozservices(Download)
from pyramid.config import Configurator, ConfigurationConflictError
 
from mozsvc.config import Config
from mozsvc.plugin import load_and_register
 
    def test_loading_from_config(self):
        config = Config(StringIO(dedent("""
        [test1]
        backend = mozsvc.tests.test_plugin.Test1
        arg1 = 1

src/m/o/mozservices-HEAD/mozsvc/tests/test_partial_disable_metrics.py   mozservices(Download)
 
from StringIO import StringIO
from mozsvc.config import Config
from mozsvc.plugin import load_and_register
from pyramid.config import Configurator
    def setUp(self):
        if not metlog:
            raise(unittest2.SkipTest('no metlog'))
        self.orig_globals = CLIENT_HOLDER.global_config.copy()
        config = Config(StringIO(dedent("""

src/m/o/mozsvc-0.7/mozsvc/tests/test_service_definition.py   mozsvc(Download)
 
from cornice.tests import CatchErrors
from mozsvc.config import Config
metlog = True
try:
    def setUp(self):
        if not metlog:
            raise(unittest2.SkipTest('no metlog'))
        mozconfig = Config(StringIO(dedent("""
        [test1]

  1 | 2  Next