#NEWLINE# def testLogout( self ) : #NEWLINE# #INDENT# logout = [ ] #NEWLINE# firstuser = wFD ( self . realm . lookupUser ( 'firstuser' ) ) #NEWLINE# ( yield firstuser ) #NEWLINE# firstuser = firstuser . getResult ( ) #NEWLINE# user = TestCaseUserAgg ( firstuser , self . realm , self . factory ) #NEWLINE# self . _login ( user , 'firstuser' ) #NEWLINE# user . protocol . logout = ( lambda : logout . append ( True ) ) #NEWLINE# user . write ( 'QUIT\r\n' ) #NEWLINE# self . assertEquals ( logout , [ True ] )