Ejemplo n.º 1
0
    def testHiddenHierarchyLookup(self):
        base = Environment()
        head = Environment(base)
        base.put("key", "value1");
        head.put("key", "value2");

        self.assertEqual("value1", base.get("key"))
        self.assertEqual("value2", head.get("key"))
Ejemplo n.º 2
0
    def testSimpleLookup(self):
        head = Environment()
        head.put("key", "value");

        self.assertEqual("value", head.get("key"))