

def testRegexp(self):
    v = registry.Regexp(None, 'help')
    self.assertEqual(v(), None)
    v.set('m/foo/')
    self.failUnless(v().match('foo'))
    self.set('')
    self.assertEqual(v(), None)
    self.assertRaises(registry.InvalidRegistryValue, v.setValue, re.compile('foo'))

dataset/ETHPy150Open ProgVal/Limnoria/test/test_registry.py ValuesTestCase.testRegexp/VarMisuse@53/65 `v`->`self`