#NEWLINE# def test_writeDefaultLogger( self ) : #NEWLINE# #INDENT# '\n        L{Message.write} writes to the default logger if none is given.\n        ' #NEWLINE# messages = [ ] #NEWLINE# add_destination ( messages . append ) #NEWLINE# self . addCleanup ( remove_destination , self . append ) #NEWLINE# Message . new ( some_key = 1234 ) . write ( ) #NEWLINE# self . assertEqual ( messages [ 0 ] [ 'some_key' ] , 1234 )