#NEWLINE# def fake_bdm_object( context , bdm_dict ) : #NEWLINE# #INDENT# 'Creates a BlockDeviceMapping object from the given bdm_dict\n\n    :param context: nova request context\n    :param bdm_dict: dict of block device mapping info\n    :returns: nova.objects.block_device.BlockDeviceMapping\n    ' #NEWLINE# return objects . BlockDeviceMapping . _from_db_object ( bdm_dict , objects . BlockDeviceMapping ( ) , FakeDbBlockDeviceDict ( bdm_dict . copy ( ) ) )