diff --git a/test.py b/test.py index f6cfcf816397a505bae655e8a4a84a1d2550c64b..e7ac5cf171a91b07285f8be3734f423e97ed6ad6 100644 --- a/test.py +++ b/test.py @@ -844,6 +844,31 @@ class NamelistInheritanceTestCase(MkexpSimpleTestCase): [[[group clone]]] """) + def test_defaulting_inherited_value(self): + self.run_test(u""" + %{NAMELIST} + """, u""" + &group1 + value = 42 + / + &group2 + / + &group3 + value = 84 + / + """, u""" + [namelists] + [[namelist]] + [[[group1]]] + value = 42 + [[[group2]]] + .extends = group1 + value = + [[[group3]]] + .extends = group2 + value = 84 + """) + class NamelistTemplateTestCase(MkexpSimpleTestCase): def test_use_template(self):