def get_all_where(data, compare):
  """
  Gets all dictionaries in list that fit to compare-dictionary.

  :param data: List with dictionaries
  :param compare: Dictionary with keys for comparison {'key';'expected value'}
  :return: list with dictionaries that fit to compare
  """
  def check_line(dataline):
    for dictkey in compare.keys():
      if dataline[dictkey] != compare[dictkey]:
        return False
        
    return True

  result = []
  for dataline in data:
    if check_line(dataline):
      result.append(dataline)
      
  return result