parameters: (self, test_name)
return_statement: return text.replace("\r\n", "\n")
docstring: Returns the text output we expect the test to produce, or None
          if we don't expect there to be any text output.
          End-of-line characters are normalized to '\n'.
docstring_summary: Returns the text output we expect the test to produce, or None
          if we don't expect there to be any text output.
          End-of-line characters are normalized to '\n'.
docstring_tokens: Returns the text output we expect the test to produce or None if we don t expect there to be any text output . End - of - line characters are normalized to \ n .
function: def expected_text(self, test_name):
          """Returns the text output we expect the test to produce, or None
          if we don't expect there to be any text output.
          End-of-line characters are normalized to '\n'."""
          # FIXME: DRT output is actually utf-8, but since we don't decode the
          # output from DRT (instead treating it as a binary string), we read the
          # baselines as a binary string, too.
          baseline_path = self.expected_filename(test_name, '.txt')
          if not self._filesystem.exists(baseline_path):
              baseline_path = self.expected_filename(test_name, '.webarchive')
              if not self._filesystem.exists(baseline_path):
                  return None
          text = self._filesystem.read_binary_file(baseline_path)
          return text.replace("\r\n", "\n")
function_tokens: def expected_text ( self , test_name ) : # FIXME: DRT output is actually utf-8, but since we don't decode the # output from DRT (instead treating it as a binary string), we read the # baselines as a binary string, too. baseline_path = self . expected_filename ( test_name , '.txt' ) if not self . _filesystem . exists ( baseline_path ) : baseline_path = self . expected_filename ( test_name , '.webarchive' ) if not self . _filesystem . exists ( baseline_path ) : return None text = self . _filesystem . read_binary_file ( baseline_path ) return text . replace ( "\r\n" , "\n" )