def testGetPluginDir(self):
        # Test that plugin_install_path option takes first precedence
        conf = config.getConfig()
        conf['plugins']['plugin_install_path'] = 'use_this_plugin_dir'

        self.assertEqual(plugin_utilities.getPluginDir(),
                         'use_this_plugin_dir')

        try:
            shutil.rmtree('use_this_plugin_dir')
        except __HOLE__:
            pass

        del conf['plugins']['plugin_install_path']
dataset/ETHPy150Open girder/girder/tests/cases/plugin_utilities_test.py/PluginUtilitiesTestCase.testGetPluginDir