[Zope-CVS] CVS: Products/PluggableAuthService/plugins/tests -
test_HTTPBasicAuthHelper.py:1.6
Lennart Regebro
regebro at nuxeo.com
Wed Sep 22 06:43:16 EDT 2004
Update of /cvs-repository/Products/PluggableAuthService/plugins/tests
In directory cvs.zope.org:/tmp/cvs-serv3699/tests
Modified Files:
test_HTTPBasicAuthHelper.py
Log Message:
Updated the tests to that they reflect the changes.
=== Products/PluggableAuthService/plugins/tests/test_HTTPBasicAuthHelper.py 1.5 => 1.6 ===
--- Products/PluggableAuthService/plugins/tests/test_HTTPBasicAuthHelper.py:1.5 Mon Sep 13 11:14:46 2004
+++ Products/PluggableAuthService/plugins/tests/test_HTTPBasicAuthHelper.py Wed Sep 22 06:43:16 2004
@@ -78,14 +78,14 @@
, { 'login' : 'foo', 'password' : 'bar' } )
def test_challenge( self ):
-
+ from zExceptions import Unauthorized
+
helper = self._makeOne()
request = FauxHTTPRequest()
response = FauxHTTPResponse()
self.failIf( response._unauthorized_called )
- helper.challenge( request, response )
- self.failUnless( response._unauthorized_called )
+ self.failUnlessRaises(Unauthorized, helper.challenge, (request, response ), {})
def test_updateCredentials( self ):
More information about the Zope-CVS
mailing list