Skip to content

Commit

Permalink
Added some bbb and updated the final packages to the new layout. Merged
Browse files Browse the repository at this point in the history
trunk.
  • Loading branch information
strichter committed Jan 17, 2005
1 parent e2e4c4b commit 59bb27c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions browser/tests/test_unauthorized.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from zope.interface import implements
from zope.publisher.browser import TestRequest
from zope.app.testing import ztapi
from zope.app.security.interfaces import IAuthenticationUtility, IPrincipal
from zope.app.security.interfaces import IAuthentication, IPrincipal
from zope.app.exception.browser.unauthorized import Unauthorized
from zope.app.testing.placelesssetup import PlacelessSetup

Expand All @@ -41,7 +41,7 @@ def getId(self):
return self.id

class DummyAuthUtility(object):
implements(IAuthenticationUtility) # this is a lie
implements(IAuthentication) # this is a lie

def unauthorized(self, principal_id, request):
self.principal_id = principal_id
Expand All @@ -56,7 +56,7 @@ class Test(PlacelessSetup, TestCase):
def setUp(self):
super(Test, self).setUp()
self.auth = DummyAuthUtility()
ztapi.provideUtility(IAuthenticationUtility, self.auth)
ztapi.provideUtility(IAuthentication, self.auth)

def tearDown(self):
super(Test, self).tearDown()
Expand Down

0 comments on commit 59bb27c

Please sign in to comment.