[Checkins] SVN: zope.app.server/trunk/src/zope/app/server/tests/test_mkzopeinstance.py Select 'Plain Text' password manager in the test to make it pass with any

Gediminas Paulauskas menesis at pov.lt
Fri Mar 18 12:13:06 EDT 2011


Log message for revision 121040:
  Select 'Plain Text' password manager in the test to make it pass with any
  zope.password version. Implementation of all other password managers was
  changed in zope.password 3.7
  

Changed:
  U   zope.app.server/trunk/src/zope/app/server/tests/test_mkzopeinstance.py

-=-
Modified: zope.app.server/trunk/src/zope/app/server/tests/test_mkzopeinstance.py
===================================================================
--- zope.app.server/trunk/src/zope/app/server/tests/test_mkzopeinstance.py	2011-03-18 16:06:19 UTC (rev 121039)
+++ zope.app.server/trunk/src/zope/app/server/tests/test_mkzopeinstance.py	2011-03-18 16:13:05 UTC (rev 121040)
@@ -263,11 +263,10 @@
     def test_get_password_manager(self):
         options = self.createOptions()
         options.password_manager = None
-        app = ControlledInputApplication(options, ["3"])
+        app = ControlledInputApplication(options, ["1"])
         name, pwm = app.get_password_manager()
-        self.assertEqual(name, "SHA1")
-        self.assertEqual(pwm.encodePassword("foo")[-40:],
-            "0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33")
+        self.assertEqual(name, "Plain Text")
+        self.assertEqual(pwm.encodePassword("foo"), "foo")
         self.failIf(self.stderr.getvalue())
         self.failUnless(self.stdout.getvalue())
         self.failUnless(app.all_input_consumed())



More information about the checkins mailing list