Exemplo n.º 1
0
def bind(foo):
    c = Config()
    c.add({"test": foo})
    return c.test
Exemplo n.º 2
0
 def create_from_list(cls, specification):
     """ Given a list of types and parameters, build a resource bundle """
     c = Config()
     c.add({"resources": specification})
     return cls.create_from_yay_expression(c.resources)
Exemplo n.º 3
0
 def create_from_list(cls, specification):
     """ Given a list of types and parameters, build a resource bundle """
     c = Config()
     c.add({"resources": specification})
     return cls.create_from_yay_expression(c.resources)
Exemplo n.º 4
0
    def test_override_literal(self):
        config = Config()
        config.load(test_yay)
        config.add(dict(injected_data="xyz"))

        self.failUnlessEqual(config.get()["result"], "xyz")
Exemplo n.º 5
0
def bind(foo):
    c = Config()
    c.add({"test": foo})
    return c.test
Exemplo n.º 6
0
    def test_override_literal(self):
        config = Config()
        config.load(test_yay)
        config.add(dict(injected_data="xyz"))

        self.failUnlessEqual(config.get()["result"], "xyz")