def stubout_attach_disks(stubs):

    def f(*args):
        raise fake.Failure("Test Exception raised by fake _attach_disks")
    stubs.Set(vmops.VMOps, '_attach_disks', f)
Create directories to store config, log and db files.
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/virt/xenapi/stubs.py/stubout_attach_disks--crossover with--dataset/ETHPy150Open semk/Pytt/pytt/utils.py/create_pytt_dirs