#NEWLINE# def test_descriptorObserver( self ) : #NEWLINE# #INDENT# '\n        When used as a descriptor, the observer is propagated.\n        ' #NEWLINE# observed = [ ] #NEWLINE# class MyObject ( object ) : #NEWLINE# #INDENT# log = Logger ( observer = observed . append ) #NEWLINE# #UNINDENT# MyObject . log . info ( 'hello' ) #NEWLINE# self . assertEqual ( len ( observed ) , 1 ) #NEWLINE# self . assertEqual ( observed [ 0 ] [ 'log_format' ] , 'hello' )