Ejemplo n.º 1
0
 def testPluginSetting(self):
     m = plugins.getHandler("CaseInsensitive")(self.repos_root + '/project1')
     self.assert_(m.enabled()==False)
     m.install()
     self.assert_(m.enabled()==True)
     m.uninstall()
     self.assert_(m.enabled()==False)
Ejemplo n.º 2
0
 def testPluginImport(self):
     self.assertRaises(Exception,  plugins.getHandler("CaseInsensitive"), "")
     module_ci = plugins.getHandler("CaseInsensitive")(self.repos_root + '/project1')
     self.assert_(module_ci.name=="Detect case-insensitive filename clashes", module_ci.name)
     self.assert_(module_ci.description!="", module_ci.description)