#NEWLINE# def test_servers_created( self ) : #NEWLINE# #INDENT# self . runtime_environment . configure ( ) #NEWLINE# self . cm . set ( 'smtp' , dict ( one = dict ( listen = 'tcp:0' , processor = 'pipeline.one' ) , two = dict ( listen = 'tcp:0' , processor = 'pipeline.two' ) ) ) #NEWLINE# provider = smtp_provider . SMTPProvider ( ) #NEWLINE# provider . configure ( self . runtime_environment ) #NEWLINE# self . assertEqual ( len ( provider . services ) , 2 ) #NEWLINE# requested_pipelines = list ( ) #NEWLINE# for service in provider . services : #NEWLINE# #INDENT# requested_pipelines . append ( service . processor_dependency . provider ) #NEWLINE# #UNINDENT# self . assertEquals ( sorted ( requested_pipelines ) , [ 'pipeline.one' , 'pipeline.two' ] )