#NEWLINE# def testActiveStatus( self ) : #NEWLINE# #INDENT# m = Gaffer . PerformanceMonitor ( ) #NEWLINE# self . assertEqual ( m . getActive ( ) , False ) #NEWLINE# m . setActive ( True ) #NEWLINE# self . assertEqual ( m . getActive ( ) , True ) #NEWLINE# m . setActive ( False ) #NEWLINE# self . assertEqual ( m . getActive ( ) , False ) #NEWLINE# with self : #NEWLINE# #INDENT# self . assertEqual ( m . getActive ( ) , True ) #NEWLINE# #UNINDENT# self . assertEqual ( m . getActive ( ) , False )