def check_file_content(path, expected_content):
  """Check file has expected content.

  :API: public

  :param str path: Path to file.
  :param str expected_content: Expected file content.
  """
  with open(path, 'r') as input:
    return expected_content == input.read()