#NEWLINE# def test_constructor( self ) : #NEWLINE# #INDENT# conn = self . conn #NEWLINE# self . assertRaises ( TypeError , self . stream_class ) #NEWLINE# self . assertRaises ( TypeError , self . stream_class , conn ) #NEWLINE# stream = self . stream_class ( conn , 333 ) #NEWLINE# assert ( stream . conn is conn ) #NEWLINE# assert ( stream . request_id == 333 ) #NEWLINE# assert ( conn . record_type == self . stream_class . record_type ) #NEWLINE# assert ( not stream . closed )