

def test_load_manifest_no_inheritance(self):
    ' load_manifest should not load ancestors with inherit=False '
    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(parent_file_path, 'w') as fh:
        fh.write(parent_manifest)
    with open(manifest, 'w') as fh:
        fh.write(child_manifest.format(parent_file_path))
    manifest = load_manifest(child_file_path, do_inherit=False)
    assert (not manifest.has_option('config', 'namespace'))

dataset/ETHPy150Open toumorokoshi/sprinter/sprinter/core/tests/test_manifest.py TestManifest.test_load_manifest_no_inheritance/VarMisuse@69/126 `child_file_path`->`manifest`