#NEWLINE# def test_uninstall_by_instance( self ) : #NEWLINE# #INDENT# plugin = self . app . install ( MyPlugin ( ) ) #NEWLINE# plugin2 = self . app . install ( MyPlugin ( ) ) #NEWLINE# self . app . uninstall ( plugin ) #NEWLINE# self . assertTrue ( ( plugin not in self . app . plugins ) ) #NEWLINE# self . assertTrue ( ( plugin2 in plugin . app . plugins ) )