#NEWLINE# def test_instance_destroy_at_top_incomplete_instance_obj( self ) : #NEWLINE# #INDENT# fake_instance = objects . Instance ( uuid = 'fake_uuid' ) #NEWLINE# with mock . patch . object ( objects . Instance , 'get_by_uuid' ) as mock_get : #NEWLINE# #INDENT# self . src_msg_runner . instance_destroy_at_top ( self . ctxt , self ) #NEWLINE# mock_get . assert_called_once_with ( self . ctxt , fake_instance . uuid )