#NEWLINE# def test_reflect_changes_to_the_plugin_path( self ) : #NEWLINE# #INDENT# plugin_manager = PackagePluginManager ( ) #NEWLINE# ids = [ plugin_manager . id for plugin in plugin_manager ] #NEWLINE# self . assertEqual ( len ( ids ) , 0 ) #NEWLINE# plugin_manager . plugin_path . append ( self . plugins_dir ) #NEWLINE# ids = [ plugin . id for plugin in plugin_manager ] #NEWLINE# self . assertEqual ( len ( ids ) , 3 ) #NEWLINE# self . assertIn ( 'banana' , ids ) #NEWLINE# self . assertIn ( 'orange' , ids ) #NEWLINE# self . assertIn ( 'pear' , ids ) #NEWLINE# del plugin_manager . plugin_path [ 0 ] #NEWLINE# ids = [ plugin . id for plugin in plugin_manager ] #NEWLINE# self . assertEqual ( len ( ids ) , 0 ) #NEWLINE# return