#NEWLINE# def test_context( self ) : #NEWLINE# #INDENT# x = self . channel . __enter__ ( ) #NEWLINE# self . assertIs ( x , self . channel ) #NEWLINE# x . __exit__ ( ) #NEWLINE# self . assertTrue ( self . closed )