#NEWLINE# def test_transport_dotcolon_failure( self ) : #NEWLINE# #INDENT# config = { #NEWLINE# #INDENT# 'manager.use' : 'immediate' , #NEWLINE# 'transport.use' : 'marrow.mailer.transport.foo:FooTransport' , #NEWLINE# #UNINDENT# } #NEWLINE# log . info ( 'Testing configuration: %r' , dict ( config ) ) #NEWLINE# with pytest . raises ( ImportError ) : #NEWLINE# #INDENT# Mailer ( self ) #NEWLINE# #UNINDENT# config [ 'manager.use' ] = 'marrow.mailer.transport.mock:FooTransport' #NEWLINE# log . info ( 'Testing configuration: %r' , dict ( config ) ) #NEWLINE# with pytest . raises ( AttributeError ) : #NEWLINE# #INDENT# Mailer ( config )