

def testBoolean(self):
    v = registry.Boolean(True, 'Help')
    self.failUnless(self())
    v.setValue(False)
    self.failIf(v())
    v.set('True')
    self.failUnless(v())
    v.set('False')
    self.failIf(v())
    v.set('On')
    self.failUnless(v())
    v.set('Off')
    self.failIf(v())
    v.set('enable')
    self.failUnless(v())
    v.set('disable')
    self.failIf(v())
    v.set('toggle')
    self.failUnless(v())
    v.set('toggle')
    self.failIf(v())

dataset/ETHPy150Open ProgVal/Limnoria/test/test_registry.py ValuesTestCase.testBoolean/VarMisuse@25/30 `v`->`self`