#NEWLINE# def test_applicationRunnerGetsCorrectApplication( self ) : #NEWLINE# #INDENT# '\n        Ensure that a twistd plugin gets used in appropriate ways: it\n        is passed its Options instance, and the service it returns is\n        added to the application.\n        ' #NEWLINE# arunner = CrippledApplicationRunner ( self . config ) #NEWLINE# arunner . run ( ) #NEWLINE# self . assertIdentical ( arunner . serviceMaker . options , self . config . subOptions , 'ServiceMaker.makeService needs to be passed the correct sub Command object.' ) #NEWLINE# self . assertIdentical ( self . serviceMaker . service , service . IService ( arunner . application ) . services [ 0 ] , "ServiceMaker.makeService's result needs to be set as a child of the Application." )