def testStringDefaultInterpolation(self): c = Config(spec=Dict(a=String(default="letter a"), aa=String(default="a {{a}}"))) c.load_data({}) c.resolve() self.assertEqual(c.get("aa"), "a letter a")
def testCircularDependency(self): c = Config(spec=Dict(a=String())) c.load_data({"a": "a{{a}}a"}) with self.assertRaises(CircularDependency): c.resolve()