#NEWLINE# def test_configdrive_scheme_set_cloud_init_templates( self , mock_lbd , mock_image_meta ) : #NEWLINE# #INDENT# data = copy . deepcopy ( PROVISION_SAMPLE_DATA ) #NEWLINE# expected_templates = 'fake_templates' #NEWLINE# data [ 'ks_meta' ] [ 'cloud_init_templates' ] = expected_templates #NEWLINE# mock_lbd . return_value = LIST_BLOCK_DEVICES_SAMPLE #NEWLINE# cd_scheme = nailgun . Nailgun ( data ) . configdrive_scheme #NEWLINE# self . assertEqual ( data , cd_scheme . templates )