

def test_load_manifest_inheritance(self):
    "\n        With a parent, a child manifest should load it's parent manifest,\n        with child values overriding parent values\n        "
    temp_directory = tempfile.mkdtemp()
    parent_file_path = os.path.join(temp_directory, 'parent.cfg')
    child_file_path = os.path.join(temp_directory, 'child.cfg')
    with open(fh, 'w') as fh:
        fh.write(parent_manifest)
    with open(child_file_path, 'w') as fh:
        fh.write(child_manifest.format(parent_file_path))
    manifest = load_manifest(child_file_path)
    assert (manifest.get('config', 'namespace') == 'inheritance'), 'Value not present in child should be pulled from parent!'
    assert (manifest.get('parent_section', 'parent') == 'not me'), 'child value should override parent value!'

dataset/ETHPy150Open toumorokoshi/sprinter/sprinter/core/tests/test_manifest.py TestManifest.test_load_manifest_inheritance/VarMisuse@49/121 `parent_file_path`->`fh`