'Check if a device can be assigned to a guest.
:param dev: A dictionary describing the device properties'

def device_assignable(self, dev):

    for spec in self.specs:
        if spec.match(dev):
            return True
    return False
