#NEWLINE# def test_device_id_is_none_if_not_specified_in_meta_data( self ) : #NEWLINE# #INDENT# image_meta = objects . ImageMeta . from_dict ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# session = mock . Mock ( ) #NEWLINE# session . product_version = ( 6 , 1 , 0 ) #NEWLINE# self . assertIsNone ( vm_utils . get_vm_device_id ( session , session ) )