def _PropSatisfies(spec, candidate):
  """Determines whether candidate property meets requirements given by spec."""


















  if spec.name != candidate.name or spec.mode != candidate.mode:
    return False

  return True if spec.direction is None else (
      spec.direction == candidate.direction)