[Checkins] SVN: Products.PluggableAuthService/branches/maurits-login-transform/Products/PluggableAuthService/tests/test_exportimport.py Fixed exportimport tests that failed due to sorting.

Maurits van Rees cvs-admin at zope.org
Fri Jan 18 15:04:29 UTC 2013


Log message for revision 129050:
  Fixed exportimport tests that failed due to sorting.
  
  I am sure these passed the last time I ran them, so this seems
  either a spurious test failure or dependent on a minor change in some other package.

Changed:
  U   Products.PluggableAuthService/branches/maurits-login-transform/Products/PluggableAuthService/tests/test_exportimport.py

-=-
Modified: Products.PluggableAuthService/branches/maurits-login-transform/Products/PluggableAuthService/tests/test_exportimport.py
===================================================================
--- Products.PluggableAuthService/branches/maurits-login-transform/Products/PluggableAuthService/tests/test_exportimport.py	2013-01-18 13:50:04 UTC (rev 129049)
+++ Products.PluggableAuthService/branches/maurits-login-transform/Products/PluggableAuthService/tests/test_exportimport.py	2013-01-18 15:04:28 UTC (rev 129050)
@@ -128,10 +128,11 @@
             self.assertEqual(filename, 'PAS/.properties')
             self.assertEqual(content_type, 'text/plain')
             lines = filter(None, [x.strip() for x in text.splitlines()])
+            lines = sorted(lines)
             self.assertEqual(len(lines), 3)
             self.assertEqual(lines[0], '[DEFAULT]')
-            self.assertEqual(lines[1], 'title =')
-            self.assertEqual(lines[2], 'login_transform =')
+            self.assertEqual(lines[1], 'login_transform =')
+            self.assertEqual(lines[2], 'title =')
 
             filename, text, content_type = context._wrote[2]
             self.assertEqual(filename, 'PAS/pluginregistry.xml')
@@ -174,10 +175,11 @@
             self.assertEqual(filename, 'PAS/.properties')
             self.assertEqual(content_type, 'text/plain')
             lines = filter(None, [x.strip() for x in text.splitlines()])
+            lines = sorted(lines)
             self.assertEqual(len(lines), 3)
             self.assertEqual(lines[0], '[DEFAULT]')
-            self.assertEqual(lines[1], 'title =')
-            self.assertEqual(lines[2], 'login_transform =')
+            self.assertEqual(lines[1], 'login_transform =')
+            self.assertEqual(lines[2], 'title =')
 
             filename, text, content_type = context._wrote[2]
             self.assertEqual(filename, 'PAS/pluginregistry.xml')



More information about the checkins mailing list