

def testInteger(self):
    v = registry.Integer(1, 'help')
    self.assertEqual(v(), 1)
    v.setValue(10)
    self.assertEqual(v(), 10)
    v.set('100')
    self.assertEqual(v(), 100)
    v.set('-1000')
    self.assertEqual(v(), (- 1000))

dataset/ETHPy150Open ProgVal/Limnoria/test/test_registry.py ValuesTestCase.testInteger/original