#NEWLINE# def test_class_attribute( handler , framework ) : #NEWLINE# #INDENT# class Something ( object ) : #NEWLINE# #INDENT# def __init__( self ) : #NEWLINE# #INDENT# self . log = txaio . make_logger ( ) #NEWLINE# #UNINDENT# def do_a_thing( self ) : #NEWLINE# #INDENT# self . log . info ( 'doing a thing' ) #NEWLINE# #UNINDENT# #UNINDENT# s = Something ( ) #NEWLINE# s . do_a_thing ( ) #NEWLINE# assert ( len ( framework . messages ) == 1 ) #NEWLINE# assert handler . messages [ 0 ] . endswith ( b'doing a thing' )