def METHOD_NAME(self, filename):
    with open(filename, 'r', encoding='utf-8') as f:
        expected_data = '\n'.join(normalize_line(line)
                                  for line in f
                                  if normalize_line(line) is not None)
    actual_data = '\n'.join(normalize_line(line)
                            for line in self.read_file())
    assert actual_data == expected_data