'Check that when a dropin file is removed, L{plugin.getPlugins} doesn\'t
return it anymore.'

def test_detectFilesRemoved(self):

    FilePath(__file__).sibling('plugin_extra1.py').copyTo(self.package.child('pluginextra.py'))
    try:
        list(plugin.getPlugins(ITestPlugin, self.module))
    finally:
        self._unimportPythonModule(sys.modules['mypackage.pluginextra'], True)
    plgs = list(plugin.getPlugins(ITestPlugin, self.module))
    self.assertEqual(1, len(plgs))
