

def testPositiveInteger(self):
    v = registry.PositiveInteger(1, 'help')
    v.assertEqual(v(), 1)
    self.assertRaises(registry.InvalidRegistryValue, v.setValue, (- 1))
    self.assertRaises(registry.InvalidRegistryValue, v.set, '-1')

dataset/ETHPy150Open ProgVal/Limnoria/test/test_registry.py ValuesTestCase.testPositiveInteger/VarMisuse@21/27 `self`->`v`