def bind(foo): c = Config() c.add({"test": foo}) return c.test
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)
def test_override_literal(self): config = Config() config.load(test_yay) config.add(dict(injected_data="xyz")) self.failUnlessEqual(config.get()["result"], "xyz")