Esempio n. 1
0
 def defineSettings():
     return [
         setting.Option("PLUGIN", "extendableOption"),
         setting.Default("PLUGIN", "extendableOption"),
     ]
Esempio n. 2
0
 def test_default(self):
     """Make sure default updating mechanism works."""
     a = setting.Setting("testsetting", 0)
     newDefault = setting.Default(5, "testsetting")
     a.changeDefault(newDefault)
     self.assertEqual(a.value, 5)