#NEWLINE# def test_md_metadata_ubuntu( self , mock_lbd , mock_image_meta ) : #NEWLINE# #INDENT# data = copy . deepcopy ( PROVISION_SAMPLE_DATA ) #NEWLINE# data [ 'profile' ] = 'base-ubuntu_1404_x86_64' #NEWLINE# data [ 'ks_meta' ] [ 'pm_data' ] [ 'ks_spaces' ] = MD_RAID_KS_SPACES #NEWLINE# mock_lbd . return_value = LIST_BLOCK_DEVICES_SAMPLE #NEWLINE# drv = nailgun . Nailgun ( mock_image_meta ) #NEWLINE# self . assertEqual ( 1 , len ( drv . partition_scheme . mds ) ) #NEWLINE# self . assertEqual ( 2 , drv . grub . version ) #NEWLINE# self . assertEqual ( 'default' , drv . partition_scheme . mds [ 0 ] . metadata )