'Should partition if instance is marked as auto_disk_config=True and
virt-layer specific fail-safe checks pass.'

@stub_vm_utils_with_vdi_attached
def test_instance_auto_disk_config_passes_fail_safes(self):

    self.instance_values['auto_disk_config'] = True
    def fake_get_partitions(dev):
        return [(1, 0, 100, 'ext4', '', 'boot')]
    self.stubs.Set(vm_utils, '_get_partitions', fake_get_partitions)
    self.assertIsPartitionCalled(True)
