#NEWLINE# def test_arg_is_request( self ) : #NEWLINE# #INDENT# class Dummy ( object ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# mailer = object ( ) #NEWLINE# registry = DummyRegistry ( mailer ) #NEWLINE# request = Dummy ( ) #NEWLINE# request . registry = request #NEWLINE# result = self . _get_mailer ( request ) #NEWLINE# self . assertEqual ( result , mailer )