Back to index

plone3  3.1.7
Classes | Functions
PluggableAuthService.tests.test_PluggableAuthService Namespace Reference

Classes

class  DummyPlugin
class  DummyUserEnumerator
class  DummyMultiUserEnumerator
class  DummyGroupEnumerator
class  DummySuperEnumerator
class  DummyGroupPlugin
class  DummyChallenger
class  DummyCredentialsStore
class  DummyBadChallenger
class  DummyReindeerChallenger
class  DummyCounterChallenger
class  FauxRequest
class  FauxNotFoundError
class  FauxResponse
class  FauxObject
class  FauxContainer
class  FauxRoot
class  FauxUser
class  RequestCleaner
class  PluggableAuthServiceTests

Functions

def _extractLogin
def _authLogin
def _extractExtra
def _authExtra
def test_suite

Class Documentation

class PluggableAuthService::tests::test_PluggableAuthService::FauxNotFoundError

Definition at line 247 of file test_PluggableAuthService.py.


Function Documentation

Definition at line 370 of file test_PluggableAuthService.py.

00370 
00371 def _authExtra( credentials ):
00372 
00373     return ( credentials.get( 'salt' ) == 'pepper'
00374          and (credentials[ 'user' ], credentials[ 'user' ]) or None )

Definition at line 359 of file test_PluggableAuthService.py.

00359 
00360 def _authLogin( credentials ):
00361 
00362     return (credentials[ 'login' ], credentials[ 'login' ])
00363 

Definition at line 364 of file test_PluggableAuthService.py.

00364 
00365 def _extractExtra( request ):
00366 
00367     return { 'user' : request.get( 'extra' )
00368            , 'salt' : 'pepper'
00369            }

Definition at line 353 of file test_PluggableAuthService.py.

00353 
00354 def _extractLogin( request ):
00355 
00356     return { 'login' : request[ 'form' ].get( 'login' )
00357            , 'password' : request[ 'form' ].get( 'password' )
00358            }

Here is the call graph for this function:

Definition at line 2033 of file test_PluggableAuthService.py.

02033 
02034 def test_suite():
02035     return unittest.TestSuite((
02036         unittest.makeSuite( PluggableAuthServiceTests ),
02037         ))