Package coilmq :: Package tests :: Module mock :: Class MockAuthenticator
[frames] | no frames]

Class MockAuthenticator

        object --+    
                 |    
auth.Authenticator --+
                     |
                    MockAuthenticator

Instance Methods
bool
authenticate(self, login, passcode)
Authenticate the login and passcode.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  LOGIN = 'foo'
  PASSCODE = 'bar'

Inherited from auth.Authenticator: __metaclass__

Properties

Inherited from object: __class__

Method Details

authenticate(self, login, passcode)

 

Authenticate the login and passcode.

Returns: bool
Whether user is authenticated.
Overrides: auth.Authenticator.authenticate
(inherited documentation)