Ignore:
Timestamp:
07/06/06 14:15:40 (14 years ago)
Author:
spascoe
Message:

Changed the interface to authentication context objects. Now call the object
rather than invoke the method authorise() to start a session.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/trunk/test/test_embedded.py

    r1104 r1124  
    3030 
    3131class AuthContext: 
    32     def authorise(self): 
     32    def __call__(self): 
    3333        # Read the auth version message 
    3434        msg = bbftpd.recv() 
     
    5656 
    5757class FailingAuthContext(AuthContext): 
    58     def authorise(self): 
     58    def __call__(self): 
    5959        az = super(FailingAuthContext).authorise() 
    6060        return None 
Note: See TracChangeset for help on using the changeset viewer.