[Zope-CVS] CVS: Products/PluggableAuthService/tests - test_PluggableAuthService.py:1.12.2.4

Zachery Bir zbir at urbanape.com
Fri Oct 8 11:59:09 EDT 2004


Update of /cvs-repository/Products/PluggableAuthService/tests
In directory cvs.zope.org:/tmp/cvs-serv12291

Modified Files:
      Tag: pre-1_0_3-zbir-challenge-branch
	test_PluggableAuthService.py 
Log Message:
copied the explanatory text without editing it for clarity.


=== Products/PluggableAuthService/tests/test_PluggableAuthService.py 1.12.2.3 => 1.12.2.4 ===
--- Products/PluggableAuthService/tests/test_PluggableAuthService.py:1.12.2.3	Fri Oct  8 11:56:21 2004
+++ Products/PluggableAuthService/tests/test_PluggableAuthService.py	Fri Oct  8 11:59:08 2004
@@ -1671,7 +1671,7 @@
         zcuf._setObject( 'dancer', dancer )
 
         rudolph = self._makeChallengePlugin('rudolph', DummyReindeerChallenger)
-        rudolph.protocol = ("They wouldn't let poor Rudolph..."
+        rudolph.protocol = ("They never let poor Rudolph..."
                             " join in any Reindeer Games")
         zcuf._setObject( 'rudolph', rudolph )
 
@@ -1686,12 +1686,15 @@
 
         # First call the userfolders before_traverse hook, to set things up:
         zcuf(self, request)
+
         # Call unauthorized to make sure Unauthorized is raised.
         self.failUnlessRaises( Unauthorized, response.unauthorized)
-        # Since we have one challenger in play, we end up calling
-        # PluggableAuthService._unauthorized(), which allows the
-        # challengers to play. DummyChallenger sets '.challenger' on
-        # response
+
+        # Since we have multiple challengers in play, we end up
+        # calling PluggableAuthService._unauthorized(), which allows
+        # the challengers to play. However, because of the ordering of
+        # the plugins, only "Reindeer Games Participant" challengers
+        # will play
         self.assertEqual(response.reindeer_games, ['dasher', 'dancer'])
 
 



More information about the Zope-CVS mailing list