#NEWLINE# def _create_metadata_json_file( self , metadata ) : #NEWLINE# #INDENT# expected_image_id = str ( uuid . uuid4 ( ) ) #NEWLINE# jsonfilename = os . path . join ( self . test_dir , ( 'storage_metadata.%s' % expected_image_id ) ) #NEWLINE# self . config ( filesystem_store_metadata_file = jsonfilename , group = 'glance_store' ) #NEWLINE# with open ( jsonfilename , 'w' ) as fptr : #NEWLINE# #INDENT# json . dump ( metadata , fptr )