#NEWLINE# def __exit__( self , exc , value , tb ) : #NEWLINE# #INDENT# self . testcase . user = self . old_user #NEWLINE# if ( not self . testcase . user ) : #NEWLINE# #INDENT# delattr ( self . testcase , 'user' ) #NEWLINE# #UNINDENT# self . testcase . client . logout ( )