#NEWLINE# def test_not_reentrant( self ) : #NEWLINE# #INDENT# calls = [ ] #NEWLINE# @ _spinner . not_reentrant #NEWLINE# def log_something( ) : #NEWLINE# #INDENT# calls . append ( None ) #NEWLINE# if ( len ( calls ) < 5 ) : #NEWLINE# #INDENT# log_something ( ) #NEWLINE# #UNINDENT# #UNINDENT# self . assertThat ( log_something , Raises ( MatchesException ( _spinner . ReentryError ) ) ) #NEWLINE# self . assertEqual ( 1 , len ( self ) )