#NEWLINE# def test_middleware( self ) : #NEWLINE# #INDENT# app = self . app #NEWLINE# wsgi = app . handler #NEWLINE# self . assertIsInstance ( wsgi , WsgiHandler ) #NEWLINE# self . assertEqual ( len ( wsgi . middleware ) , 7 )