#NEWLINE# def test_elevate_keep_data_single_disk( self , mock_lbd , mock_image_meta ) : #NEWLINE# #INDENT# data = copy . deepcopy ( PROVISION_SAMPLE_DATA ) #NEWLINE# data [ 'ks_meta' ] [ 'pm_data' ] [ 'ks_spaces' ] = SINGLE_DISK_KS_SPACES #NEWLINE# mock_lbd . return_value = LIST_BLOCK_DEVICES_SAMPLE #NEWLINE# drv = nailgun . Nailgun ( data ) #NEWLINE# self . assertTrue ( drv . partition_scheme . fs_by_mount ( '/' ) . keep_data ) #NEWLINE# for parted in drv . partition_scheme . parteds : #NEWLINE# #INDENT# for partition in parted . partitions : #NEWLINE# #INDENT# self . assertFalse ( partition . keep_data ) #NEWLINE# #UNINDENT# #UNINDENT# for md in drv . partition_scheme . mds : #NEWLINE# #INDENT# self . assertFalse ( md . keep_data ) #NEWLINE# #UNINDENT# for pv in drv . partition_scheme . pvs : #NEWLINE# #INDENT# self . assertFalse ( pv . keep_data ) #NEWLINE# #UNINDENT# for vg in drv . partition_scheme . vgs : #NEWLINE# #INDENT# self . assertFalse ( vg . keep_data ) #NEWLINE# #UNINDENT# for lv in drv . partition_scheme . lvs : #NEWLINE# #INDENT# self . assertFalse ( lv . keep_data ) #NEWLINE# #UNINDENT# for fs in drv . partition_scheme . fss : #NEWLINE# #INDENT# if ( fs . mount != '/' ) : #NEWLINE# #INDENT# self . assertFalse ( fs . keep_data )