#NEWLINE# def test_execute( self ) : #NEWLINE# #INDENT# with raises ( InternalServerError ) : #NEWLINE# #INDENT# route = LiteralRoute ( 'test' , path = '/' ) #NEWLINE# match = RouteMatch ( route , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# event = Event ( 'something' , params = { #NEWLINE# #INDENT# 'context' : { #NEWLINE# #INDENT# 'route_match' : match , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# listener = listeners . DispatchExecute ( { #NEWLINE# #INDENT# '404' : 'page/404' , #NEWLINE# #UNINDENT# } ) #NEWLINE# listener ( event )