#NEWLINE# def test_successfulFinishSerializer( self ) : #NEWLINE# #INDENT# '\n        L{Action.finish} with no exception passes the success\n        L{eliot._validation._MessageSerializer} to the message it creates.\n        ' #NEWLINE# serializers = ActionType ( 'sys:thename' , [ ] , [ Field ( 'key' , ( lambda x : x ) , '' ) ] , '' ) . _serializers #NEWLINE# class Logger ( list ) : #NEWLINE# #INDENT# def write( self , msg , serializer ) : #NEWLINE# #INDENT# self . append ( serializer ) #NEWLINE# #UNINDENT# #UNINDENT# logger = Logger ( ) #NEWLINE# action = Action ( logger , 'unique' , TaskLevel ( level = [ ] ) , 'sys:thename' , serializers ) #NEWLINE# action . finish ( ) #NEWLINE# self . assertIs ( logger [ 0 ] , serializers . success )