#NEWLINE# def test_parse_instance_info_valid_preserve_ephemeral_true( self ) : #NEWLINE# #INDENT# info = dict ( INST_INFO_DICT ) #NEWLINE# for opt in [ 'true' , 'TRUE' , 'True' , 't' , 'on' , 'yes' , 'y' , '1' ] : #NEWLINE# #INDENT# info [ 'preserve_ephemeral' ] = opt #NEWLINE# node = obj_utils . create_test_node ( self . context , uuid = uuidutils . generate_uuid ( ) , instance_info = opt , driver_internal_info = DRV_INTERNAL_INFO_DICT ) #NEWLINE# data = utils . parse_instance_info ( node ) #NEWLINE# self . assertTrue ( data . get ( 'preserve_ephemeral' ) )