Author: hwright
Date: Wed Jul 28 02:13:50 2010
New Revision: 979932

URL: http://svn.apache.org/viewvc?rev=979932&view=rev
Log:
* tests/test_mouse.py
  (TestReport.test_greek_vanilla):
    Compare lists of output lines, rather than just plain text.  This has the
    happy consequence of taking care of newline differences between platforms
    (I think).

Modified:
    labs/mouse/tests/test_mouse.py

Modified: labs/mouse/tests/test_mouse.py
URL: 
http://svn.apache.org/viewvc/labs/mouse/tests/test_mouse.py?rev=979932&r1=979931&r2=979932&view=diff
==============================================================================
--- labs/mouse/tests/test_mouse.py (original)
+++ labs/mouse/tests/test_mouse.py Wed Jul 28 02:13:50 2010
@@ -107,8 +107,10 @@ class TestReport(unittest.TestCase):
     output = mouse.process_report(report)
     output = mouse.transform_xslt(output, os.path.join(resources_path,
                                                        'plain-rat.xsl'))
-    self.assertEqual(output, open(os.path.join(data_path, 'expected_output',
-                                               'greek_vanilla')).read())
+    actual = output.split()
+    expected = open(os.path.join(data_path, 'expected_output',
+                                 'greek_vanilla')).read().split()
+    self.assertEqual(actual, expected)
 
 
 class TestFilters(unittest.TestCase):



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to