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"))
def testSimpleLookup(self): head = Environment() head.put("key", "value"); self.assertEqual("value", head.get("key"))