

def find_item_by_pk_model(self, data, pk, model):
    for item in data:
        if ((data.get('pk') == pk) and (item.get('model') == model)):
            return item

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/base.py EnvironmentManager.find_item_by_pk_model/VarMisuse@26/32 `item`->`data`