def fake_bdm_object(context, bdm_dict):
 return objects.BlockDeviceMapping._from_db_object(context, objects.BlockDeviceMapping(), FakeDbBlockDeviceDict(bdm_dict.copy()))

def fake_bdm_object ( context , bdm_dict ) : return objects . BlockDeviceMapping . _from_db_object ( context , objects . BlockDeviceMapping ( ) , FakeDbBlockDeviceDict ( bdm_dict . copy ( ) ) )
creates a blockdevicemapping object from the given bdm_dict .