#NEWLINE# def test_with_specified_prefix( self ) : #NEWLINE# #INDENT# from pyramid_mailer.interfaces import IMailer #NEWLINE# registry = DummyRegistry ( ) #NEWLINE# settings = { #NEWLINE# #INDENT# 'pyramid_mailer.prefix' : 'foo.' , #NEWLINE# 'foo.default_sender' : 'sender' , #NEWLINE# #UNINDENT# } #NEWLINE# config = DummyConfig ( registry , config ) #NEWLINE# self . _do_includeme ( config ) #NEWLINE# self . assertEqual ( registry . registered [ IMailer ] . default_sender , 'sender' )