Revision: e4db487a8ca0
Author:   Robot Framework Developers <[email protected]>
Date:     Tue Jan 24 20:23:41 2012
Log:      test_htmlwriter: fixed newline test in Windows
http://code.google.com/p/robotframework/source/detail?r=e4db487a8ca0

Modified:
 /utest/utils/test_htmlwriter.py

=======================================
--- /utest/utils/test_htmlwriter.py     Tue Jan 17 07:03:45 2012
+++ /utest/utils/test_htmlwriter.py     Tue Jan 24 20:23:41 2012
@@ -101,12 +101,13 @@
         self._test_line_separator('LINESEP')

     def _test_line_separator(self, linesep):
-        self.output = StringIO()
-        writer = HtmlWriter(self.output, line_separator=linesep)
+        output = StringIO()
+        writer = HtmlWriter(output, line_separator=linesep)
         writer.start('b')
         writer.end('b')
         writer.element('i')
-        self._verify('<b>%(LS)s</b>%(LS)s<i></i>%(LS)s' % {'LS': linesep})
+        expected = '<b>%(LS)s</b>%(LS)s<i></i>%(LS)s' % {'LS': linesep}
+        assert_equals(repr(output.getvalue()), repr(expected))

     def test_encoding(self):
         self._test_encoding('UTF-8')

Reply via email to