#NEWLINE# def test_disable_plugins( self ) : #NEWLINE# #INDENT# plugin = self . plugin_manager . plugins [ 'test1' ] #NEWLINE# self . assertTrue ( plugin . enabled ) #NEWLINE# self . assertEquals ( self . plugin_manager . disable_plugins ( [ self ] ) , 1 ) #NEWLINE# self . assertTrue ( os . path . exists ( os . path . join ( plugin . path , 'DISABLED' ) ) )