#NEWLINE# @ validateLogging ( None ) #NEWLINE# def test_message( self , logger ) : #NEWLINE# #INDENT# '\n        A message logged to the given ``LogPublisher`` is converted to an\n        Eliot log message.\n        ' #NEWLINE# publisher = LogPublisher ( ) #NEWLINE# observer = EliotObserver ( publisher ) #NEWLINE# observer . logger = self #NEWLINE# publisher . addObserver ( observer ) #NEWLINE# publisher . msg ( b'Hello' , b'world' ) #NEWLINE# assertHasMessage ( self , logger , TWISTED_LOG_MESSAGE , dict ( error = False , message = 'Hello world' ) )